(Old notes move) struts.xml in a separate configuration page jump

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
    "http://struts.apache.org/dtds/struts-2.5.dtd">

<struts>
    <constant name="struts.devMode" value="true"></constant>
    <constant name="struts.ui.theme" value="simple"></constant>
    
   <package name="erp" extends="struts-default" >
           <!--<Action name = "main"> 
               <Result> /WEB-INF/jsps/main.jsp </ Result> 
           </ Action> 
           
           <Action name = "context"> 
               <Result> /WEB-INF/jsps/context.jsp </ the Result> 
           </ Action> -> 
           <-! do separate page jumps, no class. In the present embodiment it is mainly used for main page jump context and the page. The above two are configured separately -> 
           < Action name = "erp_ *" > 
               < Result > /WEB-INF/jsps/{1}.jsp </ Result > 
           </ Action > 
   
        < Action name = "* emp_"
            result name="success">/WEB-INF/jsps/emp/{1}.jsp</result>
        </action>
         
          
  </package>
  
   
  
</struts>

 

Guess you like

Origin www.cnblogs.com/Mr-Dxin/p/11087919.html