Ted Husted wrote:
> Is this still true? Aren't we doing this all with forwards now?
>
> <quote href=
> "http://jakarta.apache.org/struts/userGuide/building_controller.html#actionmapping"
> >
>
You are right -- the language you quote below is obsolete, and should be removed. The
stuff above it is still correct, though.
Craig
>
> In the example application included with Struts, this feature is used to
> define two
> additional properties:
>
> failure - The context-relative URI to which control should be forwarded
> if the
> Action class detects some sort of problem with the input fields it
> received. This
> will typically be the name of the JSP page from which the request was
> sent,
> which will cause the form to be redisplayed (with the error messages set
> by the
> Action Class and the most recent input values from the ActionForm bean).
>
> success - The context-relative URI to which control should be forwarded
> if the
> Action class successfully performs the required function. This will
> typically be the
> name of a JSP page that prepares the next page of the conversation flow
> for this
> application.
>
> Using these two extra properties, the Action classes in the example
> application are
> almost totally independent of the actual names of the JSP pages that are
> used by the
> page designers. The pages can be renamed (for example) during a
> redesign, with
> negligible impact on the Action classes themselves. If the names of the
> "next" JSP
> pages were hard coded into the Action classes, all of these classes
> would also need to
> be modified.
>
> </quote>
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 425-0252; Fax 716 223-2506.
> -- http://www.husted.com/about/struts/