Action的mapping.findFoward(forwardName)必须要在struts-config.xml中的对应的action节点配置一个forward节点
时间:2014-01-24 21:11:21
收藏:0
阅读:586
比如说你有个SampleAction,在execute(ActionMapping mapping, ...)中写了句
return mapping.findForward("some_page");
那么你相应的在struts-config.xml中就必须有类似如下的配置:
<action ... type="org.someone.struts.action.SampleAction">
<forward name="some_page" path="/samplepages/some_page.jsp"></forward>
</action>
原文:http://www.cnblogs.com/qrlozte/p/3532382.html
评论(0)