<
package
name
="admin"
extends
="struts-default"
namespace
="/admin"
>
< interceptors >
< interceptor name ="auth"
class ="com.waimai.utils.AuthorizationInterceptor" />
</ interceptors >
< default-interceptor-ref name ="auth" />
< global-results >
< result name ="login" type ="redirect" >
/security/login.jsp
</ result >
</ global-results >
< action name ="List" class ="com.waimai.web.CaiTypeAction"
method ="list" >
< result > listCaiType.jsp </ result >
</ action >
< action name ="Edit" class ="com.waimai.web.CaiTypeAction"
method ="load" >
< result > editCaiType.jsp </ result >
</ action >
< action name ="Store" class ="com.waimai.web.CaiTypeAction"
method ="store" >
< result name ="input" type ="dispatcher" >
editCaiType.jsp
</ result >
< result type ="redirect" > List.action </ result >
</ action >
< action name ="Remove" class ="com.waimai.web.CaiTypeAction"
method ="remove" >
< result type ="redirect" > List.action </ result >
</ action >
</ package >
< interceptors >
< interceptor name ="auth"
class ="com.waimai.utils.AuthorizationInterceptor" />
</ interceptors >
< default-interceptor-ref name ="auth" />
< global-results >
< result name ="login" type ="redirect" >
/security/login.jsp
</ result >
</ global-results >
< action name ="List" class ="com.waimai.web.CaiTypeAction"
method ="list" >
< result > listCaiType.jsp </ result >
</ action >
< action name ="Edit" class ="com.waimai.web.CaiTypeAction"
method ="load" >
< result > editCaiType.jsp </ result >
</ action >
< action name ="Store" class ="com.waimai.web.CaiTypeAction"
method ="store" >
< result name ="input" type ="dispatcher" >
editCaiType.jsp
</ result >
< result type ="redirect" > List.action </ result >
</ action >
< action name ="Remove" class ="com.waimai.web.CaiTypeAction"
method ="remove" >
< result type ="redirect" > List.action </ result >
</ action >
</ package >