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!