I have a jsp page with some fields say AA,XX , YY, ZZ and 2 buttons say Submit and validate. On click of submit button All fields AA,XX,YY and ZZ are mandatory And on click of validate button only AA and ZZ are mandatory.. I know tht we can set different actions like this document.forms.action='DDD.do'; and submit the form
Joined: Jun 27, 2005
Have you looked into using a LookupDispatchAction to split up your Actions? All relevant code would look like this:
This way, you can use the LookupDispatchAction to branch to two other actions, SubmitAction and ValidateAction. Once you have that, you can just create different validations for those two seperate actions. Good luck!