我使用的struts2的版本为 struts-2.2.1.1。
一直用的是struts1,乘着有时间学习下struts2。先记录下来,等有机会慢慢完善。
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 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_2_5.xsd">
<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>
分享到:
相关推荐
struts.xml和applicationContext.xml、web.xml的配置
spring在web.xml中和在struts中的不同配置..pdf
以前和struts2一起使用的配置文件,struts2的核心控制器
struts1 web.xml struts1配置
flex4,struts2.3兼容配置web.xml
struts-config.xml配置文件 struts-config.xml配置文件 struts-config.xml配置文件
struts.xml配置文件详解struts.xml配置文件详解struts.xml配置文件详解
flex4,struts2.3兼容配置web.xml中的filter
Struts框架中struts-config.xml文件配置小结
struts-config.xml struts标准配置文件 struts-config
Struts2手动搭建“所有的jar包(全)”及相应的struts.xml和web.xml全套
使用myeclipse8.5搭建SSH后,将struts.xml和applicationContext.xml移动到别的地方,示例中为webroot下的config文件夹中,web.xml中需要做的修改示例。其中对于返回上一层方式不同的myeclipse可能不同,如有的用../...
绝对的好东西 struts2.0中struts.xml配置文件详解
struts-config.xml配置文件详解
struts2.5 web.xml配置
org.springframework.web.struts-3.1.0.M2.jar
SSH(Struts,Spring,Hibernate)struts.xml文件配置
struts-config.xml配置文件对学struts的人必备的查找资料。
struts2.0中struts.xml配置文件详解
struts.xml文件详解.docstruts.xml文件详解.docstruts.xml文件详解.docstruts.xml文件详解.doc