This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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
I agree. Here's the link:
subject: struts
jQuery in Action, 3rd edition