web.xml 配置内容
2011-02-25 17:10
176 查看
<?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"> <!-- 配置JFreeChart项目的DisplayChart --> <servlet> <servlet-name>DisplayChart</servlet-name> <servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class> </servlet> <servlet-mapping> <servlet-name>DisplayChart</servlet-name> <url-pattern>/displayChart</url-pattern> </servlet-mapping> <!-- 配置JFreeChart项目的DisplayChart结束 --> <!-- 配置对siteMesh的支持=====注意:位置一定不要改变--> <!-- 配置ActionContextCleanUp过滤器 --> <filter> <filter-name>struts-cleanup</filter-name> <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class> </filter> <!-- 配置ActionContextCleanUp过滤器结束 --> <!-- 配置SiteMesh过滤器 --> <filter> <filter-name>sitemesh</filter-name> <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class> </filter> <!-- 配置SiteMesh过滤器结束 --> <!-- 配置FilterDispatcher过滤器 --> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <!-- 配置FilterDispatcher过滤器结束 --> <!-- 配置ActionContextCleanUp链 --> <filter-mapping> <filter-name>struts-cleanup</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- 配置ActionContextCleanUp链结束 --> <!-- 配置SiteMesh链 --> <filter-mapping> <filter-name>sitemesh</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- 配置SiteMesh链结束 --> <!-- 配置FilterDispatcher链 --> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- 配置FilterDispatcher链结束 --> <!-- 配置对siteMesh的结束=====注意:位置一定不要改变--> <!-- 配置Spring --> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> <!-- 配置Spring结束 --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
相关文章推荐
- Java Servlet的配置文件web.xml配置内容和具体含义
- 关于使用spring需要在web.xml配置的内容的解析
- 配置structs2时需要修改的 web.xml 和 structs.xml 的内容
- shh整合后web.xml、spring配置文件和struts.xml的内容
- SSM(spring-springmvc-mybatis)整合开发xml配置文件内容springmvc-config.xml,application.xml,web.xml
- web.xml配置内容
- Java - web.xml文件中可以配置哪些内容?
- maven工程web层的web.xml配置文档内容
- Java Servlet的配置文件web.xml配置内容和具体含义
- spring+springmvc+druid+oscache+mybatis整合web.xml 配置内容
- Struts2中的web.xml和struts.xml配置内容
- shh整合后web.xml、spring配置文件和struts.xml的内容
- Java Servlet的配置文件web.xml配置内容和具体含义
- Java Servlet的配置文件web.xml配置内容和具体含义
- web.xml文件的作用及基本配置
- 在web.xml中配置异常处理页面
- web.xml中配置url-pattern的几种方式
- web.xml配置详解
- Struts2的web.xml配置
- web.xml配置加载顺序