为什么写了struts 2 的filter一般的jsp文件都打不开了?
struts吧
全部回复
仅看楼主
level 1
web.inf内容如下
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app 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 web-app_2_4.xsd"
version="2.4">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*.action</url-pattern>
</filter-mapping>
</web-app>
2015年12月27日 03点12分 1
level 1
其中jsp文件放在F:\tomcat\webapps\2
web.xml放在F:\tomcat\webapps\2\WEB-INF
2015年12月27日 03点12分 3
1