开发者

Struts redirection problem

开发者 https://www.devze.com 2023-02-28 15:06 出处:网络
<action-mappings> <action input=\"/welcomeStruts.jsp\" name=\"CheckForm\" path=\"/checkAction\" scope=\"request\" type=\"CheckAction\" validate=\"false\">
<action-mappings>
    <action input="/welcomeStruts.jsp" name="CheckForm" path="/checkAction" scope="request" type="CheckAction" validate="false">
        <forward name="success" path="/success.jsp" redirect="true"/>
    </action>
    <action path="/Login" forward="/login.jsp"/>
</action-mappings>

The action CheckAction doesn't redirect to success.jsp even when I fi开发者_开发问答re

return mapping.findForward("success.jsp");

Any advice? Thanks in advance.


How about:

return mapping.findForward("success");
0

精彩评论

暂无评论...
验证码 换一张
取 消