<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>
即使我开火,行动CheckAction也不会重定向到success.jsp
return mapping.findForward("success.jsp");
有什么建议吗?提前谢谢。
答案 0 :(得分:2)
怎么样:
return mapping.findForward("success");