当前位置: 技术问答>java相关
关于“Struts with XSLT and XML ”的Model2X的问题
来源: 互联网 发布时间:2015-09-29
本文导语: 大家有没有看到这篇文章,题目“Boost Struts with XSLT and XML An introduction to Model 2X”: http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html 其例子可从下面下载或本人上传的这个文件: http://www.javaworld.com/javawor...
大家有没有看到这篇文章,题目“Boost Struts with XSLT and XML An introduction to Model 2X”:
http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html
其例子可从下面下载或本人上传的这个文件:
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.zip
我按其说明部署了该例子,启动Tomcat401后,键入http://localhost:8080/strutsxsl/test后出错,如下:
Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet XSLServlet is currently unavailable
--------------------------------------------------------------------------------
type Status report
message Servlet XSLServlet is currently unavailable
description The requested service (Servlet XSLServlet is currently unavailable) is not currently available.
不知是什么原因,我用的Struts1.0.2,作者使用的上1.0.1,不知两者差别大不大?
请指教!!!
下面是我从tomcat 启动窗口复制下来的信息,可以看出XSLServlet已经进行映射了:
Call org.apache.struts.action.ActionServlet.addServletMapping(XSLServlet/java.lang.String,/XSLServlet/java.lang.String)
Call org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,/*/java.lang.String)
http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html
其例子可从下面下载或本人上传的这个文件:
http://www.javaworld.com/javaworld/jw-02-2002/strutsxslt/jw-0201-strutsxslt.zip
我按其说明部署了该例子,启动Tomcat401后,键入http://localhost:8080/strutsxsl/test后出错,如下:
Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet XSLServlet is currently unavailable
--------------------------------------------------------------------------------
type Status report
message Servlet XSLServlet is currently unavailable
description The requested service (Servlet XSLServlet is currently unavailable) is not currently available.
不知是什么原因,我用的Struts1.0.2,作者使用的上1.0.1,不知两者差别大不大?
请指教!!!
下面是我从tomcat 启动窗口复制下来的信息,可以看出XSLServlet已经进行映射了:
Call org.apache.struts.action.ActionServlet.addServletMapping(XSLServlet/java.lang.String,/XSLServlet/java.lang.String)
Call org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,/*/java.lang.String)
|
点菜单上面的管理就可以了。