Struts2后缀
Struts2后缀,
1、struts.xml,其中value可变。
<constant name="struts.action.extension" value="html"></constant>
访问路径:http://localhost:8080/HelloWord/helloword_add.html
2、web.xml,其中<param-value>html</param-value>值可变。
<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> <init-param> <param-name>struts.action.extension</param-name> <param-value>html</param-value> </init-param> </filter>
访问路径:http://localhost:8080/HelloWord/helloword_add.html