This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts

 
Joe Williams
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone let me know what is the difference between

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

and

return mapping.getInputForward();

Thanks
Joe
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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">
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic