Sent: Tuesday, May 08, 2001 3:16 PM
Subject: Override Input Form / JSP when
Errors Are Encountered
When validate() returns an error collection, the
framework takes me back to the input page (page1). How do I override
this? I have a multi-page input wizard as shown below. I'd like
Trent
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 3:16
PM
Subject: Override Input Form / JSP when
Errors Are Encountered
When validate() returns an error collection,
the framework takes me back to the input page (page1). How do I
override th
In
that case try to move your validation into the Action class.
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 08, 2001 5:13
PMTo: [EMAIL PROTECTED]Subject: Re:
Override Input Form / JSP when Errors Are Encountered
That doesn't work
exactly
James
Hicks
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 08, 2001 7:28
PMTo: [EMAIL PROTECTED]Subject: Re:
Override Input Form / JSP when Errors Are Encountered
Interesting approach. Let me see if I can
explain this back
When validate() returns an error collection, the
framework takes me back to the input page (page1). How do I override
this? I have a multi-page input wizard as shown below. I'd like to
stay on the page that resulted in the error instead of going back to page
1.
action
path="/someWizard"
instead of mapping.findForward(mapping.getInput() )
use mapping.findForward("page2 or page3")
;
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 08, 2001 3:17
PMTo: [EMAIL PROTECTED]Subject: Override
Input Form / JSP w
: Override Input Form / JSP
when Errors Are Encountered
That doesn't work - that is my problem. I
don't have a chance to do this in my Action class since the presence of errors
generated in form.validate() triggers an immediate response by the framework
and redirection occurs
]]Sent: Tuesday, May 08, 2001 4:13
PMTo: [EMAIL PROTECTED]Subject: Re:
Override Input Form / JSP when Errors Are Encountered
That doesn't work - that is my problem. I
don't have a chance to do this in my Action class since the presence of
errors generated in form.validate
To: [EMAIL PROTECTED]
Sent: Tuesday, May 08, 2001 5:43 PM
Subject: Re: Override Input Form / JSP
when Errors Are Encountered
String referrer =
request.getHeader(Referrer);
requestDispatcher requestDispatcher =
request.getRequestDispatcher
requestDispatcher.
forward
9 matches
Mail list logo