I've done some limited testing but haven't confirmed this entirely. I
also can't find any documentation that says this behavior is intended.

If you save errors in one action, then forward to another action prior
to forwarding to a destination .jsp page the <html:errors /> tag has
nothing to display.  The errors seem to be lost after the first forward.

(e.g. workflow)

1 - Http request to ActionOne
2 - ActionOne:
                * creates ActionErrors instance
                * adds new ActionError to ActionErrors instance using
                  the ActionErrors.GLOBAL_ERRORS param.
                * saveErrors(request, errors) is called.
                * request is forwarded to ActionTwo

3 - ActionTwo is a blank action that does nothing except print a line
     to stderr.  Then forwards the request to a .jsp with a
     <html:errors /> tag.

4 - No errors are displayed.

If instead of forwarding to the second action I forward directly to the
page with the html:errors tag on (effectively jumping over the second
action) the errors appear.

Any insight would be appreciated.

relevant struts versions 1.0.1 & 1.0.2

Hopefully I am not in error and wasting anyones time with this.


Thanks

Rob


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to