----- Original Message -----
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 9:52 AM
Subject: RE: DispatchAction and input
> Joel wrote:
> > I guess that's the root of my problem.
> > The place that it should go to when validation fails is
> > different for each method. I would always want it to go
> > back to the page that was submitted to produce the error
>
> I've never tried this, but... 'ActionMapping mapping' is part of the
> signature of the validate method. Would it be possible to override
> validate() and call mapping.setInput("whatever.jsp") before calling
> super.validate()?
No. The action mapping is frozen right after it is initialized. It is
possibly shared by multiple request threads. If you modify the input
attribute by calling mapping.setInput("whatever.jsp") in one thread,
while another thread needs the input to be "whatever-another.jsp",
it is going to be a bug in your systems.
That is reason why Craig freezes action mappings.
>
> Worth a try, I guess. Although "go back where you came from" is a common
> Struts problem. I just put a value in the request or session, but that
may
> not appeal to everyone.
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Public Affairs, Information Resources Management
> Arizona State University, Tempe AZ
>
Jing
Netspread Carrier
http://www.netspread.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]