Hi,
I'm using Spring MVC version 2.5.6.SEC01.
I have a controller configured to use a validator when the form is submitted.
However, when I submit the form, the validation is not kicking in. The webapp displays the next screen, which is a confirmation screen showing all the data entered on the input screen.Code:<bean name="debitCardLostStolenController" class="aib.cctp.ui.controller.cards.DebitCardLostStolenController"> <property name="sessionForm"> <value>true</value> </property> <property name="commandClass"> <value>aib.cctp.domain.model.api.cards.DebitCardReplace</value> </property> <property name="validator"> <ref bean="debitCardReplaceValidator"/> </property> </bean>
The confirmation screen has a 'Back' button (<input> tag) that navigates back to the input screen by havingIf I click the 'Back' button, I'm brought back to the input screen, but now the validation runs, and any validation errors appear on the input screen.Code:action="debitcardloststolen.htm?_target0=true" method="post"
Anyone got any ideas where I'm going wrong? This simple scenario is working fine on my other controllers. I'm sure it's something obvious, but I can't see it!
Many thanks for your help,
Ken.



Reply With Quote
