当前位置: 代码迷 >> J2EE >> action跳转有关问题
  详细解决方案

action跳转有关问题

热度:107   发布时间:2016-04-22 02:46:26.0
action跳转问题
第一个action <action name="Save" class="com.xiemin.action.StudentAction" method="save">
  <result name="success" type="redirect">/List.action</result>
  <result name="error">/errors.jsp</result>
  </action>

第二个action <action name="Update" class="com.xiemin.action.StudentAction" method="update">
  <result name="success" type="redirect">/List.action</result>
  <result name="error">/errors.jsp</result>
为什么我第一个action能正常显示信息。而第二个则404错误,还是List.action是系统的吗?是的话,那是什么意思?怎么理解?我创建了list.jsp跳转过去。就是不显示信息,必须List.action才能显示,求高手解答。。

------解决方案--------------------
你用<result name="success" type="redirectAction">/List.action</result>试试看。
  相关解决方案