> -----Original Message-----
> From: Axel Seinsche [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 20, 2004 8:19 AM
> To: Struts Users Mailing List
> Subject: Re: errors get lost on redirect
> 
> 
> Bill Siggelkow schrieb:
> 
> > I don't understand exactly why you are doing the redirect? Why not 
> > just set the input attribute to be the page you are 
> redirecting to ... 
> > then Struts will forward to it when validation fails.
> >
> Can I set the input attribute in my Java Code? I thought I have to 
> define it in the struts-config.xml. But at design time it's not yet 
> defined to which page the application should forward to. Is 
> it possible 
> to use mapping.setInput(myForward)? That would be too easy. ;-)

iirc struts locks this.  If you're putting the messages in request scope, then the 
redirect is a "new request", and so the request scope stuff is blown away.
You could use session.

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

Reply via email to