You can use the @SkipValidation annotation in front of your delete method. -----Original Message----- From: Igor Vlasov [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 9:59 AM To: user@struts.apache.org Subject: Disable validation when "delete" button is pressed
Hello. I have <s:form action="customer" method='post' theme="xhtml" > <s:textfield name="customer.cus_email" size="20" label="E-mail" /> <s:submit value="OK." name="VIEW" theme="simple"> </s:submit> <s:submit value="Delete" name="DEL" theme="simple"></s:submit> </s:form> and CustomerCRUD-validation: <validators> <field name="customer.cus_email"> <field-validator type="email"> <message>Error E-mail</message> </field-validator> </field> </validators> How to DISABLE server side validation when i click on "DELETE" button and have empty email field value ? -- View this message in context: http://www.nabble.com/Disable-validation-when-%22delete%22-button-is-pre ssed-tf4640820.html#a13254463 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]