Mohan,
If you use the html:cancel type of button rather than html:submit the
validation framework is not called.
If you are using client side javascript validation through the framework you
can disable validation of a button by setting the parameter bCancel=true
like this;

<html:submit property="methodToCall" value="Cancel"
onclick="bCancel=true;"/>

Regards
Steve

-----Original Message-----
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 06:34
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

    We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

    Appreciate ideas.
Mohan


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


=======================================================
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
=======================================================


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

Reply via email to