Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Errata : ActionForward

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Complete Reference P85-86 :
<action-mappings>
<action path="/updateUser"
type="com.jamesholmes.example.UpdateUserAction">
<forward name="success" path="/updateSuccess.jsp"/>
</action>
</action-mappings>



public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
// Perform action processing.

return new ActionForward("updateSuccess");
}

Doesn't
return new ActionForward("updateSuccess");

should be
return new ActionForward("success");

??
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the execute method you've shown us is from the UpdateUserAction class, then it appears you are right. The forward name should be success and not updateSucces.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic