首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

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

2012-06-29 
关于action下面又有action,转向,参数等1,JSP页面放置路径很正常,就算是放置action路径2,遇到STRUTS2的stru

关于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>

热点排行