The input page is specified in the action mapping. Use separate action
mappings for each input page (add.jsp and edit.jsp). You can use the same
Action class for both.
-Max
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 24, 2003 12:15 PM
Sub
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
}
}
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 method
Here
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 method
Here's one "hacky" way of doing this: Set
bject: 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
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] w
6 matches
Mail list logo