Action name/url name in debuggers using Struts 2

你说的曾经没有我的故事 提交于 2019-11-29 17:37:06

This happens as a result of the bad workflow design. To correct it you should read about PRG pattern. You can change

<action name="actLogin" class="actionLogin">
    <interceptor-ref name="newStack" />
    <result name="success" type="redirectAction">actHomePage</result>
    <result name="error">Login.jsp</result>
</action>

<action name="actHomePage" class="actionHomePage">
    <interceptor-ref name="newStack" />
    <result name="success">HomePage.jsp</result>
</action>

other results are not needed, but you can remain them if you need to forward to a different page with the same action in the URL.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!