您的位置:首页 > 其它

<result name="success" type="redirectAction">ro...

2012-12-17 00:00 435 查看
就是当你<result name="success" type="redirectAction">roleList</result>这个action中的返回字段是SUCCESS或者"success"时,因为这个返回类型type="redirectAction",也就是说它重定向到另一个action中,这个action的名字就叫roleList.你在你的actin的name="roleList"这个action中看一下,它又执行了哪个action类,假如<action name="roleList" class="com.RoleListAction">
<result>
index.jsp
</result>
</action>                 这就会让你这重新到com.RoleListAction中去执行execute()这个方法,执行完后会跳转到index.jsp这个页面中
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐