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??
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:
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
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 3:36 PM
To: Struts Users Mailing List
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
Thanks Tim.This too makes good sense..thanks
Chen, Gin [EMAIL PROTECTED]
10/24/2003 02:45 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
);
}
}
Do the same for edit.
Of course there are a lot of other ways to do this as well.
-Tim
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 3:36 PM
To: Struts Users Mailing List
Subject: Re: Multiple error pages from validate
Subject: Multiple error pages from validate method
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
7 matches
Mail list logo