1的回答;
首先:在struts-config.xml 文件中,在相对应的方法中加入
<forward name="lookok" path="/ASMSviewjsp/hmanager/grant.jsp" />
<forward name="success" path="/ASMSviewjsp/hresult/opsuccess.jsp" />
<forward name="failure" path="/ASMSviewjsp/hresult/opfailure.jsp" />
之后,
其次:在action 中的execute 方法中,用return mapping.findForward("lookok");注意在action中,在开始注释中,加入
/**
* MyEclipse Struts
* Creation date: 05-06-2008
*
* XDoclet definition:
* @struts.action path="/grant" name="grantForm" input="/ASMSviewjsp/hmanager/grant.jsp" scope="request" validate="true"
* @struts.action-forward name="lookok" path="/ASMSviewjsp/hmanager/grant.jsp"
* @struts.action-forward name="success" path="/ASMSviewjsp/hresult/opsuccess.jsp"
* @struts.action-forward name="failure" path="/ASMSviewjsp/hresult/opfailure.jsp"
*/即可呀!
首先:在struts-config.xml 文件中,在相对应的方法中加入
<forward name="lookok" path="/ASMSviewjsp/hmanager/grant.jsp" />
<forward name="success" path="/ASMSviewjsp/hresult/opsuccess.jsp" />
<forward name="failure" path="/ASMSviewjsp/hresult/opfailure.jsp" />
之后,
其次:在action 中的execute 方法中,用return mapping.findForward("lookok");注意在action中,在开始注释中,加入
/**
* MyEclipse Struts
* Creation date: 05-06-2008
*
* XDoclet definition:
* @struts.action path="/grant" name="grantForm" input="/ASMSviewjsp/hmanager/grant.jsp" scope="request" validate="true"
* @struts.action-forward name="lookok" path="/ASMSviewjsp/hmanager/grant.jsp"
* @struts.action-forward name="success" path="/ASMSviewjsp/hresult/opsuccess.jsp"
* @struts.action-forward name="failure" path="/ASMSviewjsp/hresult/opfailure.jsp"
*/即可呀!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货