I've solved this by changing the action in the form:

<s:submit value="Delete" onclick="this.form.action= 'delete.action';" />

but you must rename your CustomerCRUD-validation.xml file to
CustomerCRUD-<ActionThatNeedsValidation>-validation.xml file.
Just don't define any validation file for the delete action.

2007/10/17, Igor Vlasov <[EMAIL PROTECTED]>:
>
> 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-pressed-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]

Reply via email to