This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


Joe Williams

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

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


return mapping.getInputForward();

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

Consultant, Sima Solutions
GeeCON Prague 2014
subject: struts