mihsathe
mihsathe

Reputation: 9154

Struts redirection problem

<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 fire

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

Any advice? Thanks in advance.

Upvotes: 0

Views: 339

Answers (1)

Tommi
Tommi

Reputation: 8608

How about:

return mapping.findForward("success");

Upvotes: 2

Related Questions