Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread Robert Miller
I have a form which has a save (html:submit ...) and continue (html:cancel ...) button. The save should validate and process the data in the form. The continue button should go to the next page, skipping any validation and processing. I have been using the validator plugin, with all of my

Re: Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread struts lover
Extend your action class from ValidatorLookupdispatchAction class by Brandon Goodin. ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush

Re: Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread Kishore Senji
Instead of commenting out your validate() method You can do something like this public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){ ActionErrors errors = super.validate(mapping, request); // If we see the cancel key in the request, since your continue button is a