You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohd Fadhly <fa...@xybase.com> on 2003/11/17 05:30:18 UTC

question about action

hello,

is there a difference between :

response.sendRedirect("/test.do");
return null;

&

return (mapping.findForward("test"));
with the action mapping in struts-config.xml :
        <action
            input="/any.jsp"
            name="AnyForm"
            path="/anything"
            type="com.test.AnyAction">
            <forward name="test" path="/test.do" redirect="true" />
    </action>

both goes to /test.do but is there any difference if i specify 
redirect="true" in forward mapping, & if i do the old way 
(response.sendRedirect)




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org