Multiple error pages from validate method

2003-10-24 Thread VKeswani
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??

Re: Multiple error pages from validate method

2003-10-24 Thread Geeta Ramani
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:

Re: Multiple error pages from validate method

2003-10-24 Thread VKeswani
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

RE: Multiple error pages from validate method

2003-10-24 Thread Chen, Gin
-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

RE: Multiple error pages from validate method

2003-10-24 Thread VKeswani
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

Re: Multiple error pages from validate method

2003-10-24 Thread Geeta Ramani
); } } 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

Re: Multiple error pages from validate method

2003-10-24 Thread Max Cooper
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