This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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
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!