1. 程式人生 > >struts中action重定向到action配置

struts中action重定向到action配置

clas customer action配置 erro code esp red spring eth

<action name="xxxAction_*" class="xxx 或者spring配置的bean" method="{1}>
    <result name="list" type="dispatcher">/jsp/list.jsp</result><!--請求轉發到jsp頁面 type="dispatcher" 默認 請求轉發-->
    <result name="error" type="redirect">/jsp/login.jsp</result><!--請求轉發到jsp頁面 type="redirect" 重定向
--> <result name="toList" type="redirectAction"><!--請求轉發到Action type="redirectAction" 請求轉發--> <param name="namespace">/</param><!--name="namespace" 轉發到的命名空間--> <param name="actionName">CustomerAction_list</param><!--name="actionName" 轉發到哪個action
--> </result> <action>

struts中action重定向到action配置