首页 > 网站 > WEB开发 > 正文

web.xml

2024-04-27 15:14:06
字体:
来源:转载
供稿:网友

<?xml version="1.0" encoding="UTF-8"?><web-app> <display-name>SecurityApp</display-name> <description>Security OA System</description> <context-param>  <param-name>webApPRootKey</param-name>  <param-value>oa.root</param-value> </context-param> <!-- 所有模块Spring配置文件都添加到param-value中,以回车符分割 --> <context-param>  <param-name>contextConfigLocation</param-name>  <param-value>   WEB-INF/sys/applicationContext.xml   WEB-INF/sys/applicationContext-resource.xml   WEB-INF/sys/applicationContext-org.xml   WEB-INF/sys/applicationContext-auth.xml   WEB-INF/sys/applicationContext-strategy.xml   WEB-INF/sys/applicationContext-integrate_user.xml   WEB-INF/sys/applicationContext-portal.xml   WEB-INF/sys/applicationContext-logdata.xml   WEB-INF/oa/spring/applicationContext-usermanage.xml   WEB-INF/product/info/applicationContext-info.xml   WEB-INF/classes/sinogrid-spring.xml  </param-value> </context-param> <context-param>  <param-name>log4jConfigLocation</param-name>  <param-value>WEB-INF/sys/config/log4j.properties</param-value> </context-param>  <!-- 验证用户身份 --> <filter>  <filter-name>LoginFilter</filter-name>  <filter-class>   com.sinosoft.authorization.module.system.login.filter.LoginFilter  </filter-class> </filter>  <!-- 过滤URL特殊字符 --> <!-- <filter>  <filter-name>UrlFilter</filter-name>  <filter-class>com.sinosoft.authorization.module.system.url.filter.URLFilter</filter-class> </filter> <filter-mapping>  <filter-name>UrlFilter</filter-name>  <url-pattern>/*</url-pattern> </filter-mapping> -->   <!-- 过滤统一授权平台的jsp页面 --> <filter-mapping>  <filter-name>LoginFilter</filter-name>  <url-pattern>/sys/jsp/*</url-pattern> </filter-mapping> <filter-mapping>  <filter-name>LoginFilter</filter-name>  <servlet-name>action</servlet-name> </filter-mapping> <filter-mapping>  <filter-name>LoginFilter</filter-name>  <servlet-name>PortalLogin</servlet-name> </filter-mapping>

 <!-- 用户权限身份 --> <filter>  <filter-name>rightRoleFilter</filter-name>  <filter-class>   com.sinosoft.authorization.module.system.login.filter.RightRoleFilter  </filter-class> </filter>

 <filter-mapping>  <filter-name>rightRoleFilter</filter-name>  <url-pattern>/sys/jsp/*</url-pattern> </filter-mapping> <filter-mapping>  <filter-name>rightRoleFilter</filter-name>  <servlet-name>action</servlet-name> </filter-mapping> <!-- 权限过滤 --> <context-param>  <param-name>requestEncoding</param-name>  <param-value>utf-8</param-value> </context-param> <context-param>  <param-name>responseEncoding</param-name>  <param-value>utf-8</param-value> </context-param> <filter>  <filter-name>SetCharacterEncoding</filter-name>  <filter-class>   com.sinosoft.util.tool.SetCharacterEncodingFilter  </filter-class>  <init-param>   <param-name>ignore</param-name>   <param-value>true</param-value>  </init-param>  <init-param>   <param-name>encoding</param-name>   <param-value>UTF-8</param-value>  </init-param> </filter>

 <filter-mapping>  <filter-name>SetCharacterEncoding</filter-name>  <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping>  <filter-name>SetCharacterEncoding</filter-name>  <servlet-name>action</servlet-name> </filter-mapping> <filter>  <filter-name>opensessionInView</filter-name>  <filter-class>   org.springframework.orm.hibernate3.support.OpenSessionInViewFilter  </filter-class> </filter> <filter-mapping>  <filter-name>openSessionInView</filter-name>  <url-pattern>/*</url-pattern> </filter-mapping>  <servlet>  <servlet-name>EnInitServlet</servlet-name>  <servlet-class>com.sinosoft.ep.en.plugin.InitServlet</servlet-class>  <load-on-startup>0</load-on-startup> </servlet> <servlet>  <servlet-name>initServlet</servlet-name>  <servlet-class>com.sinosoft.main.HandleServlet</servlet-class>  <init-param>   <param-name>handle</param-name>   <param-value>/WEB-INF/sys/config/handle-config.xml</param-value>  </init-param>  <load-on-startup>1</load-on-startup> </servlet> <servlet>  <servlet-name>BigPageWorkServlet</servlet-name>  <servlet-class>   com.sinosoft.ep.dev.Ajax.BigPageWorkServlet  </servlet-class> </servlet> <servlet>  <servlet-name>action</servlet-name>  <servlet-class>   com.sinosoft.plugin.SinoEpActionServlet  </servlet-class>  <!-- Begin 所有模块struts配置文件添加到Begin至End范围内 -->  <init-param>   <param-name>config</param-name>   <param-value>/WEB-INF/sys/struts-config.xml</param-value>  </init-param>  <init-param>   <param-name>config/system</param-name>   <param-value>    /WEB-INF/sys/struts-config-bean.xml,    /WEB-INF/sys/struts-config-resource.xml,    /WEB-INF/sys/struts-config-org.xml,    /WEB-INF/sys/struts-config-portalresource.xml,    /WEB-INF/sys/struts-config-auth.xml,    /WEB-INF/sys/struts-config-strategy.xml,    /WEB-INF/sys/struts-config-log.xml   </param-value>  </init-param>  <init-param>   <param-name>config/portal</param-name>   <param-value>/WEB-INF/sys/struts-config-portal.xml</param-value>  </init-param>  <init-param>   <param-name>config/info</param-name>   <param-value>/WEB-INF/product/info/struts-config-info.xml</param-value>  </init-param>  <!-- End   所有模块struts配置文件添加 -->  <init-param>   <param-name>debug</param-name>   <param-value>2</param-value>  </init-param>  <init-param>   <param-name>detail</param-name>   <param-value>2</param-value>  </init-param>  <load-on-startup>2</load-on-startup> <init-param>   <param-name>config/oa</param-name>   <param-value>    /WEB-INF/oa/struts-config-login.xml,    /WEB-INF/oa/struts/struts-config-usermanage.xml   </param-value>  </init-param><init-param>   <param-name>config/workflow/hetong</param-name>   <param-value>/WEB-INF/app/struts-config-app-hetong.xml</param-value>  </init-param><init-param>   <param-name>config/workflow/Linye</param-name>   <param-value>/WEB-INF/app/struts-config-Linye.xml</param-value>  </init-param><init-param>   <param-name>config/workflow/zongshu</param-name>   <param-value>/WEB-INF/app/struts-config-zongshu.xml</param-value>  </init-param><init-param>   <param-name>config/app</param-name>   <param-value>/WEB-INF/app/struts-config-app-system.xml</param-value>  </init-param></servlet> <servlet>  <servlet-name>velocity</servlet-name>  <servlet-class>   com.sinosoft.authorization.module.portal.initvm.servlet.VelocityPortalServlet  </servlet-class>  <init-param>   <param-name>org.apache.velocity.toolbox</param-name>   <param-value>/WEB-INF/sys/velocity/toolbox.xml</param-value>  </init-param>  <init-param>   <param-name>org.apache.velocity.properties</param-name>   <param-value>    /WEB-INF/sys/velocity/velocity.properties   </param-value>  </init-param>  <load-on-startup>10</load-on-startup> </servlet> <!--Begin  webservice--> <servlet>  <display-name>Apache-Axis Servlet</display-name>        <servlet-name>AxisServlet</servlet-name>        <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>        <load-on-startup>1</load-on-startup>    </servlet> <servlet>  <display-name>Apache-Axis Servlet (REST)</display-name>        <servlet-name>AxisRESTServlet</servlet-name>        <servlet-class>org.apache.axis2.transport.http.AxisRESTServlet</servlet-class>    </servlet>    <servlet>  <display-name>Apache-Axis AxisAdmin Servlet (REST)</display-name>        <servlet-name>AxisAdminServlet</servlet-name>        <servlet-class>org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>    </servlet>    <servlet>     <description>     </description>     <display-name>     PortalLogin</display-name>     <servlet-name>PortalLogin</servlet-name>     <servlet-class>     com.sinosoft.authorization.module.portal.login.PortalLogin</servlet-class>    </servlet>    <servlet>     <description>     </description>     <display-name>     PortalFrontpage</display-name>     <servlet-name>PortalFrontpage</servlet-name>     <servlet-class>     com.sinosoft.authorization.module.portal.login.PortalFrontpage</servlet-class>    </servlet>    <servlet-mapping>        <servlet-name>AxisRESTServlet</servlet-name>        <url-pattern>/rest/*</url-pattern>    </servlet-mapping>    <servlet-mapping>        <servlet-name>AxisServlet</servlet-name>        <url-pattern>/servlet/AxisServlet</url-pattern>    </servlet-mapping>

    <servlet-mapping>        <servlet-name>AxisServlet</servlet-name>        <url-pattern>*.jws</url-pattern>    </servlet-mapping>

    <servlet-mapping>        <servlet-name>AxisServlet</servlet-name>        <url-pattern>/services/*</url-pattern>    </servlet-mapping>

    <servlet-mapping>        <servlet-name>AxisAdminServlet</servlet-name>        <url-pattern>/axis2-admin/*</url-pattern>    </servlet-mapping> <!--End  webservice--> <servlet-mapping>  <servlet-name>velocity</servlet-name>  <url-pattern>*.tpl</url-pattern> </servlet-mapping> <servlet-mapping>  <servlet-name>velocity</servlet-name>  <url-pattern>*.vm</url-pattern> </servlet-mapping> <servlet-mapping>  <servlet-name>BigPageWorkServlet</servlet-name>  <url-pattern>*.bigPage</url-pattern> </servlet-mapping> <servlet-mapping>  <servlet-name>action</servlet-name>  <url-pattern>*.do</url-pattern> </servlet-mapping> <servlet-mapping>  <servlet-name>PortalLogin</servlet-name>  <url-pattern>/PortalLogin</url-pattern> </servlet-mapping> <servlet-mapping>  <servlet-name>PortalFrontpage</servlet-name>  <url-pattern>/PortalFrontpage</url-pattern> </servlet-mapping>   <!-- 定义验证码的Servelet --> <servlet>  <servlet-name>VerficationCodeServlet</servlet-name>  <servlet-class>com.sinosoft.authorization.module.system.login.verifycode.VerficationCodeServlet</servlet-class>  <init-param>   <param-name>width</param-name>   <param-value>100</param-value>  </init-param>  <init-param>   <param-name>height</param-name>   <param-value>20</param-value>  </init-param>  <init-param>   <param-name>length</param-name>   <param-value>4</param-value>  </init-param>  <init-param>   <param-name>fontName</param-name>   <param-value>隶体</param-value>  </init-param>  <init-param>   <param-name>fontStyle</param-name>   <param-value>5</param-value>  </init-param>  <init-param>   <param-name>fontSize</param-name>   <param-value>20</param-value>  </init-param> </servlet>  <servlet-mapping>  <servlet-name>VerficationCodeServlet</servlet-name>  <url-pattern>/VerficationCodeServlet</url-pattern> </servlet-mapping>    <!--  配置进行加密解密的Servlet -->  <servlet>   <servlet-name>SecreteServlet</servlet-name>    <servlet-class>com.sinosoft.authorization.module.system.login.secrete.SecreteServlet</servlet-class> </servlet> <servlet-mapping>   <servlet-name>SecreteServlet</servlet-name>    <url-pattern>/SecreteServlet</url-pattern>  </servlet-mapping>   <welcome-file-list>  <welcome-file>login.jsp</welcome-file>  <welcome-file>index.jsp</welcome-file>  <welcome-file>sys/login.jsp</welcome-file>  <welcome-file>sys/index.jsp</welcome-file> </welcome-file-list> <jsp-config>  <taglib>   <taglib-uri>/WEB-INF/sino-tags-page.tld</taglib-uri>   <taglib-location>    /WEB-INF/sys/sino-tags-authorization.tld   </taglib-location>  </taglib>   <taglib>   <taglib-uri>/datagrid</taglib-uri>   <taglib-location>/WEB-INF/product/datagrid/taglib/datagrid.tld</taglib-location>  </taglib> </jsp-config>

 <context-param>  <param-name>SecQueryPageTemplatePath</param-name>  <param-value>/WEB-INF/product/datagrid/template/SecQuery.template</param-value> </context-param> <context-param>  <param-name>TurnPageTemplatePath</param-name>  <param-value>/WEB-INF/product/datagrid/template/TurnPage.template</param-value> </context-param> <servlet>  <servlet-name>DataGridOutputServlet</servlet-name>  <servlet-class>com.sinosoft.ep.datagrid.web.DataGridOutputServlet</servlet-class> </servlet> <servlet-mapping>  <servlet-name>DataGridOutputServlet</servlet-name>  <url-pattern>/DataGridOutput</url-pattern> </servlet-mapping>

 <servlet>  <servlet-name>StoreTextServiceServlet</servlet-name>  <servlet-class>com.sinosoft.ep.form.web.v3.StoreTextServiceServlet</servlet-class> </servlet> <servlet-mapping>  <servlet-name>StoreTextServiceServlet</servlet-name>  <url-pattern>/StoreTextServiceServlet</url-pattern> </servlet-mapping> <servlet>  <servlet-name>CascadeComboxServiceServlet</servlet-name>  <servlet-class>com.sinosoft.ep.form.web.v3.CascadeComboxServiceServlet</servlet-class> </servlet> <servlet-mapping>  <servlet-name>CascadeComboxServiceServlet</servlet-name>  <url-pattern>/CascadeComboxServiceServlet</url-pattern> </servlet-mapping>

    <servlet>  <servlet-name>httpServiceForAnyq</servlet-name>  <servlet-class>   com.sinosoft.common.anyq.HttpServiceForAnyq  </servlet-class> </servlet> <servlet-mapping>  <servlet-name>httpServiceForAnyq</servlet-name>  <url-pattern>/httpServiceForAnyq</url-pattern> </servlet-mapping><filter>  <filter-name>APPLoginFilter</filter-name>  <filter-class>   com.sinosoft.app.login.filter.AppLoginFilter  </filter-class> </filter><filter-mapping>  <filter-name>APPLoginFilter</filter-name>  <url-pattern>/app/jsp/*</url-pattern> </filter-mapping><filter-mapping>  <filter-name>APPLoginFilter</filter-name>  <servlet-name>action</servlet-name> </filter-mapping>    <servlet>  <servlet-name>reportApplet</servlet-name>  <servlet-class>com.sinosoft.report.tools.ReportAppletServlet</servlet-class> </servlet> <servlet-mapping>  <servlet-name>reportApplet</servlet-name>  <url-pattern>/reportApplet</url-pattern> </servlet-mapping>

 <servlet>  <servlet-name>MessageBrokerServlet</servlet-name>  <servlet-class>   flex.messaging.MessageBrokerServlet  </servlet-class>  <init-param>   <param-name>services.configuration.file</param-name>   <param-value>/WEB-INF/product/workflow/flex/services-config.xml</param-value>  </init-param>  <load-on-startup>1</load-on-startup> </servlet> <servlet>  <servlet-name>WorkFlowServlet</servlet-name>  <servlet-class>workflow.servlet.WorkFlowServlet</servlet-class> </servlet> <servlet-mapping>  <servlet-name>MessageBrokerServlet</servlet-name>  <url-pattern>/messagebroker/*</url-pattern> </servlet-mapping> <servlet-mapping>  <servlet-name>WorkFlowServlet</servlet-name>  <url-pattern>/WorkFlowServlet</url-pattern> </servlet-mapping></web-app>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表