Actually, I traced this in code also and I think it already does
mapping.findForward(input) inside....

In either case, how could you specify to Struts to construct a ForwardConfig
object with redirect=true??

Thanks,
Yaakov.

-----Original Message-----
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Monday, February 07, 2005 4:03 PM
To: Jeff Beal; user@struts.apache.org
Subject: Re: Redirecting back to input

At 3:32 PM -0500 2/7/05, Jeff Beal wrote:
>I looked at the source of the RequestProcessor.processValidate()
>method, and it certainly doesn't look like there's any way to
>redirect on validation error without modifying the behavior there.

I think that if in your <controller> element in Struts config, you use:
     <set-property property="inputForward" value="true" />

then Struts will do a "mapping.findForward(input)" upon validation
failure.  This forward could be defined with "redirect='true'"

That doesn't help with getting the errors stored in session scope
instead of request scope, though.

Joe

--
Joe Germuska           
[EMAIL PROTECTED] 
http://blog.germuska.com   
"Narrow minds are weapons made for mass destruction"  -The Ex

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

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

Reply via email to