spring2.5 web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
 xmlns="http://java.sun.com/xml/ns/j2ee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

 <display-name>Home</display-name>

 <!-- Define the default CSS Theme -->
 <context-param>
  <param-name>csstheme</param-name>
  <param-value>simplicity</param-value>
 </context-param>
 
 <context-param>
  <param-name>webAppRootKey</param-name>
  <param-value>frt.root</param-value>
 </context-param>
 
 <!-- Define the basename for a resource bundle for I18N -->
 <context-param>
  <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
  <!--<param-value>i18n/messages</param-value>-->
  <param-value>message/ApplicationResources</param-value>
 </context-param>

 <!-- Fallback locale if no bundles found for browser's preferred locale -->
 <!-- Force a single locale using param-name 'javax.servlet.jsp.jstl.fmt.locale' -->
 <context-param>
  <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
  <param-value>en</param-value>
 </context-param>
  
  
 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>
   classpath*:conf/spring/applicationContext*.xml,
   classpath*:conf/spring/jbpm/applicationContext*.xml  
  </param-value>
 </context-param>

 <!-- 著名 Character Encoding filter -->
 <filter>
  <filter-name>encodingFilter</filter-name>
  <filter-class>
   org.springframework.web.filter.CharacterEncodingFilter
  </filter-class>
  <init-param>
   <param-name>encoding</param-name>
   <param-value>UTF-8</param-value>
  </init-param>
  <init-param>
   <param-name>forceEncoding</param-name>
   <param-value>true</param-value>
  </init-param>
 </filter>
<!--
 <filter>
  <filter-name>securityFilter</filter-name>
  <filter-class>
   org.springframework.web.filter.DelegatingFilterProxy
  </filter-class>
  <init-param>
   <param-name>targetBeanName</param-name>
   <param-value>springSecurityFilterChain</param-value>
  </init-param>
 </filter>
 -->
 <!-- <filter>
  <filter-name>staticFilter</filter-name>
  <filter-class>
   com.ccc.webapp.filter.StaticFilter
  </filter-class>
  <init-param>
   <param-name>includes</param-name>
   <param-value>/scripts/dojo/*,/dwr/*</param-value>
  </init-param>
  <init-param>
   <param-name>servletName</param-name>
   <param-value>dispatcher</param-value>
  </init-param>
 </filter> -->


 <!--Hibernate Open Session in View Filter-->
 <filter>
  <filter-name>hibernateFilter</filter-name>
  <filter-class>
  com.ccc.webapp.filter.FrtOpenSessionInViewFilter
  </filter-class>
 </filter>
 

 <!--  <filter>
  <filter-name>Acegi Filter Chain Proxy</filter-name>
  <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
  <init-param>
  <param-name>targetClass</param-name>
  <param-value>org.acegisecurity.util.FilterChainProxy</param-value>
  </init-param>
  </filter>
  
  <filter-mapping>
  <filter-name>Acegi Filter Chain Proxy</filter-name>
  <url-pattern>/*</url-pattern>
  </filter-mapping>
 -->


 <filter-mapping>
  <filter-name>encodingFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
<!--
 <filter-mapping>
  <filter-name>securityFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 --> 
   
  <filter-mapping>
  <filter-name>hibernateFilter</filter-name>
  <url-pattern>*.html</url-pattern>
 </filter-mapping>

 <!-- Spring刷新Introspector防止内存泄露 -->
 <listener>
  <listener-class>
   org.springframework.web.util.IntrospectorCleanupListener
  </listener-class>
 </listener>

 <!-- 支持session scope的Spring bean -->
 <listener>
  <listener-class>
   org.springframework.web.context.request.RequestContextListener
  </listener-class>
 </listener>
 
 <!-- 
 <listener>
  <listener-class>
   com.ccc.webapp.listener.UserCounterListener
  </listener-class>
 </listener>
 -->
 
 <servlet>
        <servlet-name>spring</servlet-name>
        <servlet-class>
            org.springframework.web.servlet.DispatcherServlet
        </servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath*:conf/spring/controller/applicationContext*.xml</param-value>         
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <!--Spring ApplicationContext 载入 -->
 <listener>
  <listener-class>
   org.springframework.web.context.ContextLoaderListener
  </listener-class>
 </listener>

 <!-- DWR servlet,生产环境应该Debug为false -->
    <servlet>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-class>org.directwebremoting.servlet.DwrServlet </servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>
   
    <servlet-mapping>
  <servlet-name>dwr-invoker</servlet-name>
  <url-pattern>/dwr/*</url-pattern>
 </servlet-mapping>
   
    <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>
   
    <!-- DWR Spring Servlet -->
    <!--<servlet>
        <servlet-name>dwr-spring-invoker</servlet-name>
        <servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>-->
 
 <!-- Spring mappings -->
    <servlet-mapping>
        <servlet-name>spring</servlet-name>
        <url-pattern>*.html</url-pattern>
    </servlet-mapping>

 <!-- XFire WebServic
  <servlet>
  <servlet-name>xfire</servlet-name>
  <servlet-class>
  org.codehaus.xfire.spring.XFireSpringServlet
  </servlet-class>
  </servlet>
  
  
  <servlet-mapping>
  <servlet-name>xfire</servlet-name>
  <url-pattern>/service/*</url-pattern>
  </servlet-mapping>-->

 

 <!-- 让hibernate open session in view的荣光也照耀xfire
  <filter-mapping>
  <filter-name>hibernateFilter</filter-name>
  <url-pattern>/service/*</url-pattern>
  </filter-mapping> -->

 

 <!-- session超时定义,单位为分钟 -->
 <session-config>
  <session-timeout>100</session-timeout>
 </session-config>
 <!-- 默认首页定义 -->
 <welcome-file-list>
  <welcome-file>index.html</welcome-file>
  <welcome-file>index.jsp</welcome-file>
 </welcome-file-list>
 <!-- Error Page定义 -->
 <error-page>
  <error-code>500</error-code>
  <location>/common/error/error.jsp</location>
 </error-page>

 <error-page>
  <error-code>403</error-code>
  <location>/common/error/403.jsp</location>
 </error-page>
 
 <error-page>
  <error-code>404</error-code>
  <location>/common/error/404.jsp</location>
 </error-page>
 <!-- JBPM 查看圖片的相關配置 -->
   <servlet>
        <servlet-name>ProcessImageServlet</servlet-name>
        <servlet-class>org.jbpm.webapp.servlet.ProcessImageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>ProcessImageServlet</servlet-name>
        <url-pattern>/processimage</url-pattern>
    </servlet-mapping>
     <servlet>
        <servlet-name>DeployServlet</servlet-name>
        <servlet-class>org.jbpm.webapp.servlet.DeployServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>DeployServlet</servlet-name>
        <url-pattern>/deploy</url-pattern>
    </servlet-mapping>
    <servlet>
        <servlet-name>UploadServlet</servlet-name>
        <servlet-class>org.jbpm.webapp.servlet.UploadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>UploadServlet</servlet-name>
        <url-pattern>/upload</url-pattern>
    </servlet-mapping>
</web-app>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值