Adam Hardy wrote:
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)
But those would be done in the action class, right? I'm wondering
if this can be done using a DynaValidatorForm -- the Validator is
tossing me back to the input page before the action is invoked.
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?
--
____________________________________________________________
Glenn Holmer [EMAIL PROTECTED]
Programmer/Analyst phone: 414.908.1809
Weyco Group, Inc. fax: 414.908.1601
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]