<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="mgr" namespace="/mgr" extends="myPackage">
<!-- ajax json start-->
<result-types>
<result-type name="json" class="org.apache.struts2.json.JSONResult"/>
</result-types>
<interceptors>
<interceptor name="json" class="org.apache.struts2.json.JSONInterceptor"/>
</interceptors>
<!-- ajax json end-->
<global-results>
<result name="licenceTimeOut" type="redirect">/mgr/login.jsp</result>
<result name="token">/mgr/main.jsp</result>
<result name="error">/mgr/error.jsp</result>
<result name="login" type="redirect">/mgr/login.jsp</result>
</global-results>
<global-exception-mappings>
<exception-mapping exception="java.lang.NullPointerExceptions" result="error" />
<exception-mapping exception="org.hibernate.exception.GenericJDBCExceptions" result="error" />
<exception-mapping exception="java.lang.Exceptions" result="error" />
<exception-mapping exception="java.lang.Throwable" result="error"></exception-mapping>
</global-exception-mappings>
<action name="mgrlogin" class="com.game.tets.MgrLoginAction" method="login">
<result type="redirect">/mgr/index.jsp</result>
<result name="login" type="chain">tologin</result>
</action>
<action name="mgrlogout" class="com.game.test.MgrLogoutAction">
<result type="redirect">/mgr/login.jsp</result>
</action>
<action name="tologin">
<result>/mgr/login.jsp</result>
</action>
</package>
</struts>
struts.xml
原创
©著作权归作者所有:来自51CTO博客作者mb6459beff599ab的原创作品,请联系作者获取转载授权,否则将追究法律责任

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
MybatisPlus基础Xml使用教程
MybatisPlus基础最全教程,里面包含操作的核心教程以及重点难点,很适合新手以及中高级开发学习
mybatis mybatisplus springboot -
struts.xml浅职场 休闲 struts.xml
-
struts.xml参考
http://struts.apache.org/dtds/struts-2.0.dtd">
struts spring 资源文件 -
Eclipse创建struts.xml
qxl
struts2 xml -
struts2.0.14 web.xml,struts.xml配置
web.xml<?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/
职场 休闲 struts2.0.14 web.xml struts.xml配置 -
struts.xml的配置
struts.xml的配置:
struts 拦截器 xml 命名空间 方法名