This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Errata : ActionForward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Errata : ActionForward" Watch "Errata : ActionForward" New topic

Errata : ActionForward

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
In Complete Reference P85-86 :
<action path="/updateUser"
<forward name="success" path="/updateSuccess.jsp"/>

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

return new ActionForward("updateSuccess");

return new ActionForward("updateSuccess");

should be
return new ActionForward("success");

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Errata : ActionForward
Similar Threads
Redirect url with in the action class
DispatchAction:seems fine, but doesn't work
LookupDispatchAction - Missing message
Actionforward Problem
Runing an example struts application