struts2的基本配置
2009-09-13 22:20
399 查看
<?xml version="1.0" encoding="GBK"?>
<web-app 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" version="2.5">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.dispatcher.FilterDispacter </filter-class>
<!--不行则改为org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter-->
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
<web-app 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" version="2.5">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.dispatcher.FilterDispacter </filter-class>
<!--不行则改为org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter-->
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
相关文章推荐
- Struts2配置XML基本格式
- Struts2基本配置实例
- struts2基本流程与配置亲测
- Struts2的基本配置
- Struts2基本的配置
- 1.struts2的基本配置
- Struts2 拦截器 及如何获得 servlet 请求对象 以及Struts 基本配置 &&Session 超时设置
- Struts2 Hibernate Spring 整合的基本流程和步骤及其相关配置细节
- struts2-struts2的基本配置
- struts2的基本配置
- struts2基本配置
- [置顶] Struts2入门的入门------下载,配置,基本概念总结
- Struts2 入门学习笔记(一)——基本配置
- Struts2的基本配置
- 框架 day27 Struts2 入门(概述,基本xml配置,动态方法调用,Action类,ServletAPI访问,结果集)
- Struts2基本配置和类型转换
- struts2基本配置详解
- Struts2学习---基本配置,action,动态方法调用,action接收参数
- Struts2基本配置
- Struts2学习笔记(2)——Struts2基本配置