`
gstarwd
  • 浏览: 1489552 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

web.xml 的配置文件

    博客分类:
  • SSH
阅读更多

<?xml version="1.0" encoding="UTF-8"?>
<web-app 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 web-app_2_4.xsd"
 version="2.4">

 <!--
  - Contacts web application
  -
  - web.xml for "filter" artifact only.
  -
  - $Id: web.xml,v 1.18 2007/04/16 04:44:41 jianfeng.zhang Exp $
 -->

 <display-name>51point Application</display-name>

 <!--
  - Location of the XML file that defines the root application context
  - Applied by ContextLoaderListener.
 -->
 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>
   /WEB-INF/classes/webApplicationContext.xml
   /WEB-INF/classes/hibernateContext.xml
   /WEB-INF/classes/commonApplicationContext.xml
   /WEB-INF/classes/permissionApplicationContext.xml
   /WEB-INF/classes/applicationContext_zjf.xml
   /WEB-INF/classes/applicationContext_hh.xml
   /WEB-INF/classes/applicationContext_hcc.xml
   /WEB-INF/classes/applicationContext_wdj.xml
   /WEB-INF/classes/applicationContext_cyk.xml
   /WEB-INF/classes/applicationContext_jjq.xml
   /WEB-INF/classes/schedulerContext.xml
  </param-value>
 </context-param>
 <context-param>
  <param-name>webAppRootKey</param-name>
  <param-value>point.root</param-value>
 </context-param>
 <context-param>
  <param-name>log4jConfigLocation</param-name>
  <param-value>/WEB-INF/classes/log4j.properties</param-value>
 </context-param>
 <filter>
  <filter-name>Set Character Encoding</filter-name>
  <filter-class>
   com.insightcn.point.web.filter.SetEncodeFilter
  </filter-class>
  <init-param>
   <param-name>encoding</param-name>
   <param-value>GBK</param-value>
  </init-param>
 </filter>
 <filter>
  <filter-name>ConsoleLoginFilter</filter-name>
  <filter-class>
   com.insightcn.point.web.filter.CheckLoginFilter
  </filter-class>
  <init-param>
   <param-name>exceptable-pages</param-name>
   <param-value>manage/index.jsp,manage/login.do</param-value>
  </init-param>
  <init-param>
   <param-name>admin-login-page</param-name>
   <param-value>/manage/index.jsp</param-value>
  </init-param>

 </filter>
 <filter>
  <filter-name>FrontCheckLoginFilter</filter-name>
  <filter-class>
   com.insightcn.point.web.filter.FrontCheckLoginFilter
  </filter-class>
  <init-param>
   <param-name>exceptable-pages</param-name>
   <param-value>/fore/index.do</param-value>
  </init-param>
  <init-param>
   <param-name>front-login-page</param-name>
   <param-value>/fore/index.do</param-value>
  </init-param>

 </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>Set Character Encoding</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 <filter-mapping>
  <filter-name>ConsoleLoginFilter</filter-name>
  <url-pattern>/manage/*</url-pattern>
 </filter-mapping>
 <filter-mapping>
  <filter-name>FrontCheckLoginFilter</filter-name>
  <url-pattern>/fore/*</url-pattern>
 </filter-mapping>
 <filter-mapping>
  <filter-name>FrontCheckLoginFilter</filter-name>
  <url-pattern>*.do</url-pattern>
 </filter-mapping>
 <!--
  <filter-mapping>
  <filter-name>Acegi Filter Chain Proxy</filter-name>
  <url-pattern>/*</url-pattern>
  </filter-mapping>
 -->
 <!--
  - Loads the root application context of this web app at startup.
  - The application context is then available via
  - WebApplicationContextUtils.getWebApplicationContext(servletContext).
 -->

 <listener>
  <listener-class>
   org.springframework.web.util.Log4jConfigListener
  </listener-class>
 </listener>

 <listener>
  <listener-class>
   com.insightcn.point.util.SpringContextLoaderListener
  </listener-class>
 </listener>

 <!--
  The HttpSessionEventPublisher will publish
  HttpSessionCreatedEvent and HttpSessionDestroyedEvent
  to the WebApplicationContext
  <listener>
  <listener-class>
  org.acegisecurity.ui.session.HttpSessionEventPublisher
  </listener-class>
  </listener>
 -->
 <!-- log4j config bootstrap loader-->
 <servlet>
  <servlet-name>log4j</servlet-name>
  <servlet-class>
   org.springframework.web.util.Log4jConfigServlet
  </servlet-class>
  <load-on-startup>1</load-on-startup>
 </servlet>
 <!-- Spring context config bootstrap loader-->
 <!--
  <servlet>
  <servlet-name>springContext</servlet-name>
  <servlet-class>
  org.springframework.web.context.ContextLoaderServlet
  </servlet-class>
  <load-on-startup>2</load-on-startup>
  </servlet>
 -->
 <!-- ============= The Struts ActionServlet Configuration ============= -->

 <servlet>
  <servlet-name>action</servlet-name>
  <servlet-class>
   org.apache.struts.action.ActionServlet
  </servlet-class>
  <init-param>
   <param-name>config</param-name>
   <param-value>
    /WEB-INF/struts-config.xml,/WEB-INF/struts-config-permission.xml,/WEB-INF/struts-config-jjq.xml,/WEB-INF/struts-config-wdj.xml,/WEB-INF/struts-config-hcc.xml,/WEB-INF/struts-config-zjf.xml,/WEB-INF/struts-config-hh.xml,/WEB-INF/struts-config-cyk.xml
   </param-value>
  </init-param>
  <init-param>
   <param-name>debug</param-name>
   <param-value>3</param-value>
  </init-param>
  <init-param>
   <param-name>detail</param-name>
   <param-value>3</param-value>
  </init-param>
  <load-on-startup>4</load-on-startup>
 </servlet>

 <servlet>
  <servlet-name>ValidateCodeServlet</servlet-name>
  <display-name>
   This is the display name of my J2EE component
  </display-name>
  <description>
   This is the description of my J2EE component
  </description>

  <servlet-class>
   com.insightcn.point.util.ValidateCodeServlet
  </servlet-class>

 </servlet>

 <servlet-mapping>
  <servlet-name>action</servlet-name>
  <url-pattern>*.do</url-pattern>
 </servlet-mapping>

 <servlet-mapping>
  <servlet-name>ValidateCodeServlet</servlet-name>
  <url-pattern>/servlet/ValidateCodeServlet</url-pattern>
 </servlet-mapping>

 <servlet>
  <servlet-name>DisplayPicture</servlet-name>
  <servlet-class>
   com.insightcn.point.util.DisplayPicture
  </servlet-class>
  <load-on-startup>3</load-on-startup>
 </servlet>
 <!--
  - Provides core MVC application controller. See contacts-servlet.xml.
 -->
 <!--
  <servlet>
  <servlet-name>contacts</servlet-name>
  <servlet-class>
  org.springframework.web.servlet.DispatcherServlet
  </servlet-class>
  <load-on-startup>1</load-on-startup>
  </servlet>
 -->
 <!-- ============= The Struts Action Servlet Mapping ================== -->
 <!--
  
 -->
 <!--
  <servlet-mapping>
  <servlet-name>contacts</servlet-name>
  <url-pattern>*.htm</url-pattern>
  </servlet-mapping>
 -->

 <!--
  - Provides web services endpoint. See remoting-servlet.xml.
 -->
 <!--
  <servlet>
  <servlet-name>remoting</servlet-name>
  <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  <load-on-startup>2</load-on-startup>
  </servlet>
  
  <servlet-mapping>
  <servlet-name>remoting</servlet-name>
  <url-pattern>/remoting/*</url-pattern>
  </servlet-mapping>
  
  
  
 -->
 <servlet-mapping>
  <servlet-name>DisplayPicture</servlet-name>
  <url-pattern>/servlet/picture</url-pattern>
 </servlet-mapping>
 <welcome-file-list>
  <welcome-file>/index.jsp</welcome-file>
  <welcome-file>/index.html</welcome-file>
 </welcome-file-list>

 <taglib>
  <taglib-uri>/spring</taglib-uri>
  <taglib-location>/WEB-INF/spring.tld</taglib-location>
 </taglib>
 <!-- =============== The Struts Taglib Definition ===================== -->
 <taglib>
  <taglib-uri>struts-bean</taglib-uri>
  <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
 </taglib>
 <taglib>
  <taglib-uri>struts-html</taglib-uri>
  <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
 </taglib>
 <taglib>
  <taglib-uri>struts-logic</taglib-uri>
  <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
 </taglib>
 <taglib>
  <taglib-uri>struts-tiles</taglib-uri>
  <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
 </taglib>

 <!-- ================================================================== -->
 <!-- ============= The Struts-Menu Taglib Definition ================== -->
 <taglib>
  <taglib-uri>struts-menu</taglib-uri>
  <taglib-location>/WEB-INF/struts-menu.tld</taglib-location>
 </taglib>
 <!-- ============= The Custome Taglib Definition ================== -->
 <taglib>
  <taglib-uri>displaytag</taglib-uri>
  <taglib-location>/WEB-INF/displaytag-11.tld</taglib-location>
 </taglib>
 <taglib>
  <taglib-uri>displaywraptag</taglib-uri>
  <taglib-location>/WEB-INF/displaytagpro-11.tld</taglib-location>
 </taglib>

</web-app>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics