首页上一页 1 下一页尾页 3 条记录 1/1页
《JSP项目开发全程实录》第一章代码的问题!!急求解答!!
发表在JavaWeb图书答疑
2009-04-24
是否精华
是
否
版块置顶:
是
否
我的部署环境下用的web.xml是01包中提供的
代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<taglib>
<taglib-uri>struts2</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tags.tld</taglib-location>
</taglib>
</web-app>
但为什么运行:http://localhost:8080/01/index.jsp时
IE中有以下报错信息:
----------------------------------------------------------------------
type Status report
message /01/index.jsp
description The requested resource (/01/index.jsp) is not available.
----------------------------------------------------------------------
我甚至把整个01包拷贝到tomcat下webapps目录中
还是报同样的错!!
不知道为什么
急求解答!!!
多谢多谢!!!
代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<taglib>
<taglib-uri>struts2</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tags.tld</taglib-location>
</taglib>
</web-app>
但为什么运行:http://localhost:8080/01/index.jsp时
IE中有以下报错信息:
----------------------------------------------------------------------
type Status report
message /01/index.jsp
description The requested resource (/01/index.jsp) is not available.
----------------------------------------------------------------------
我甚至把整个01包拷贝到tomcat下webapps目录中
还是报同样的错!!
不知道为什么
急求解答!!!
多谢多谢!!!