Struts 1.2 has a feature you can use that allows you to store your ActionMessages in session variables, then have it removed once they're accessed. I haven't used this yet, but you can probably build on this by storing your errors before you redirect, then have them displayed by the resource your redirected to. Another option is the extensions at http://www.rabago.net/struts/redirect which actually adds your messages (error or not) to the url paramters and puts them back on the ActionMessages queue upon redirection.
hth, Hubert --- mucus snot <[EMAIL PROTECTED]> wrote: > Hi, > > I am using action errors as a means of passing messages to the request: > > e.g. > > in Action, execute method... > > errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("message.to.user")); > saveErrors(request, errors); > return mapping.findForward(Constants.REDIRECT_KEY); > > But if I redirect from this action to another forward that is also an > action, the actionError is out of scope. > > I would be interested to know if > (a) this is good practice - to forward to another forward (it seems to work > > for me) > (b) there is an easy way to carry the actionError forward within storing in > > the session, and saving it in the redirected request. > > Hope I'm making sense, > > Thanks, al __________________________________ Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster http://search.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]