Andy,

Why would you want to validate on cancel?
If you really want to do that, use html:submit instead and just label
the button Cancel and process accordingly in your action (forward?)

Dean Hoover

andy wix wrote:

Hi,

I have a form with 2 buttons (one html:submit, the other html:cancel) and have implemented a LookupDispatchAction class to handle them.
The 'save' button needs to validate the user entry and the 'cancel' button does not.


From reading the html:cancel tag's API, I thought this would auto-magically

do the trick but my form still gets validated when I click this.

Thanks,
Andy

PS - thanks to the chaps who helped with the 'Identifying the clicked line when iterating over collection' thing - I finally got it working!

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to