读书人

关于action上面又有action转向参数

发布时间: 2012-06-29 15:48:46 作者: rapoo

关于action下面又有action,转向,参数等
1,JSP页面放置路径很正常,就算是放置action路径

2,遇到STRUTS2的struts.XML需要再接action,TYPE=SENDREDIRECT
<struts>
<package name="checkcert" extends="default" namespace="/">
<action name="doSubmitCertAction" type="redirect">/showCheckCerts.do</result>
<result name="input">/ICEnd/jsp/checkCert/checkCert_list.jsp</result>
<interceptor-ref name="ICEndStack" />
</action>



3,ACTION后面又有ACTION,传递参数PARAM,用EL表达式也可

<action name="loginAction" method="doLoginAction">
<result name="success" type="redirectAction">
<param name="actionName">showIBEndIndexPage</param>
<param name="fldRn">${loginInfo.viewIBInfo.fldRn}</param>
</result>
<result name="error">/IBEnd/jsp/login.jsp</result>
<result name="exception">/IBEnd/jsp/login.jsp</result>
</action>

读书人网 >行业软件

热点推荐