• 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