Thanks geeta!

Yes that might be a roundabout way of doing it.Lemme try!




"Geeta Ramani" <[EMAIL PROTECTED]>
10/24/2003 02:36 PM
Please respond to "Struts Users Mailing List"

 
        To:     Struts Users Mailing List <[EMAIL PROTECTED]>
        cc: 
        Subject:        Re: Multiple error pages from validate method


Here's one "hacky" way of doing this:  Set a request attribute, something
like "goToErrorPage2" right after you validate. On the top of the error 
page
if that attribute goToErrorPage2 is nonnull, then forward to the second 
error
page else simply render the "normal" error page..

[EMAIL PROTECTED] wrote:

> Hello,
>
> I am using one ActionForm bean for multiple pages..say for add.jsp and
> edit.jsp.But when I validate and I get an error I want the user to go to
> different error pages instead of one just specified in struts-config 
file
> as input parameter?
>
> Can somebody help??


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



Reply via email to