<?xml?version="1.0"?encoding="UTF-8"?>
<web-app?version="3.0"?
xmlns="http://java.sun.com/xml/ns/javaee"?
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee?
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
??<display-name>HwelloWorld</display-name>
?
??<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>/*</url-pattern>
??</filter-mapping>
??
??</web-app>
2016-08-26
可以改啊,你的webxml文件里都沒有寫出來怎么配的,怎么看哪兒錯(cuò)導(dǎo)致行不通呢
2016-05-31
不是在web.xml改的,在struts.xml中