If you are using Validator, you can create a DynaForm. then based on the action that you are calling, the validations can be different. This will work for either client side or server side supposedly. I have only used server side with it.
Inactive hide details for Marc Demlenne <[EMAIL PROTECTED]>Marc Demlenne <[EMAIL PROTECTED]>


          Marc Demlenne <[EMAIL PROTECTED]>

          07/13/2005 10:56 AM

          Please respond to
          "Struts Users Mailing List" <user@struts.apache.org>

To

Struts Users Mailing List <user@struts.apache.org>

cc


Subject

validation client-side. Problem with 2 submit buttons

Hello,

Using struts validation framework, what's the best way to handle the
following case :

You have a simple form with 2 submit buttons. One for display, the
other to modify changes.
How to make the validation active only for modify button ?
Server-side, you can simply have 2 actions name, one of them defined
as validate=true, the other as validate=false.
Is there a client-side equivalent ?

Thanks a lot for any help.

--
Marc Demlenne

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


Reply via email to