PDA

View Full Version : Abstractwizardformcontroller sending user to some error page


samchannel
Jun 5th, 2008, 06:03 AM
Hi,
I have a form with 3 stages. While moving from stage 1 to stage 2, I need to do some process. If the process fails i need to take user to a error view which is not among the views i declared in xxx-servlet.xml for that controller. I do that process in referenceData(...) method but i can't figure out how i can redirect user to error view. Can somebody please help.

Thanks

some one
Jun 5th, 2008, 07:24 PM
You could call vaildatePage () not process anything unless validation passes.

ADd the errors to your views and the user will not be able to move ahead until issues on the current page are fixed


http://static.springframework.org/spring/docs/2.5.4/api/org/springframework/web/servlet/mvc/AbstractWizardFormController.html#validatePage(jav a.lang.Object,%20org.springframework.validation.Er rors,%20int)

~s.

samchannel
Jun 6th, 2008, 05:16 AM
Thanks for the reply.
The processs i am calling is not a validation process. That is why i do not want to put this in validation.