我将我的Struts1应用程序迁移到Struts2。在Struts 2中处理ActionForward
是否有在Struts2下面的代码任何替代,我在我的Action类用这个。
String path = mapping.findForward("failurePath").getPath();
new ActionForward(path);
我将我的Struts1应用程序迁移到Struts2。在Struts 2中处理ActionForward
是否有在Struts2下面的代码任何替代,我在我的Action类用这个。
String path = mapping.findForward("failurePath").getPath();
new ActionForward(path);
可以在struts.xml中直接使用
<result name="resultName" type="redirect" >failurePath.action?param1=${value1}¶m2={value2}</result>
您需要为value1
和value2
OIN动作类
对于您所使用的目的,这struts1的代码setter和getter方法 – PSR 2013-05-13 13:24:52
重定向到动作类下面。 '' –
john
2013-05-13 13:26:54
转发不是重定向,如果您希望替代方法更新您的问题。 – 2013-05-13 20:20:58