<?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>