重定向到某个页面:type=”redirect”
重定向到某个action:type=”redirectAction”
struts默认的返回值是input,表示出现错误,可以转到错误页面
复制代码
1
2
3
4
5
6
<action name="customer_*" class="customerAction" method="{1}">
<result name="input">/jsp/error.jsp</result>
<result name="login" type="redirect">/login.jsp</result>
<result name="findByPage" type="redirectAction">customer_findByPage.action</result>
</action>
最后
以上就是专一月饼最近收集整理的关于ssh框架:action重定向的全部内容,更多相关ssh框架内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复