If your buttons have values set then you can test to see which button value was submitted. Even better though with struts you can use the built-in cancel button without needing to do that. <html:cancel/> and then check action.isCancelled(request)

Adam

On 10/07/2003 01:49 PM Glenn Holmer wrote:
When you're using DynaValidatorForm and the page has two buttons
(e.g. "Commit" and "Cancel"), how do you not validate if the user
hits the "Cancel" button (which on my page, also submits, but the
action checks the value of the submit button)?

Do I have to write a Form subclass to do this?  Can you have a
hand-coded Form subclass and use the Validator rules as well?


-- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9


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



Reply via email to