aspose file tools*
The moose likes Struts and the fly likes struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts" Watch "struts" New topic
Author

struts

Joe Williams
Greenhorn

Joined: Oct 18, 2005
Posts: 6
Can anyone let me know what is the difference between

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

and

return mapping.getInputForward();

Thanks
Joe
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
return (mapping.findForward("success"));

forwards to the page specificed by a forward named "success"
<forward name="success" path="/myPage.jsp">


return mapping.getInputForward();

forwards to the page specified as the input page as in
<action name="myForm" path="/myAction" scope="request" type="mypackage.MyClass" input="/myInputPage.jsp">


Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: struts