Hi, What if it is not a 'submit' ?
Mine is like this <input type="button" name="Task" class="formbutton" onclick="javascript:window.open('<%=request.getContextPath()%>/switch.do?pre fix=/ip&page=/enforcement.do?dispatch=prepopulateTask','','width=900, height=650, left=0, top=0, menubar=no, status=yes, location=no, toolbar=no, scrollbars=yes, resizable=yes')" value="Task"/> Thanks Mohan -----Original Message----- From: Hunt, Steve [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 2:05 PM To: 'Struts Users Mailing List' Subject: RE: Disable validator framework 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]