I assume for action:
public class TicketAction extends com.opensymphony.xwork2.ActionSupport {
...
 public string save() {
...
 }
...
}
the file name should be  TicketAction-save-validation.xml ???

File with such name is ignored on form submit.

Only TicketAction-validation.xml is valid file name.

Any ideas, why?

If I have in one form DELETE and SAVE buttons, how to turn off client side
validation for DELETE button?

Thanks.


Musachy Barroso wrote:
> 
> See here:
> 
> http://struts.apache.org/2.x/docs/validation.html
> 
> you can add a file ActionName-MethodName-validation.xml with the
> validation
> for that method.
> 
> regards
> musachy
> 
> On 2/21/07, cilquirm <[EMAIL PROTECTED]> wrote:
>>
>>
>> I believe you can use validation annotation to specify validation
>> routines
>> at
>> the method level.
>>
>>
>>
>>
>> ros wrote:
>> >
>> > Hi!
>> >
>> > How to configure struts2 validation for only one method in action?
>> >
>> > Thanks.
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a9083597
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a9085071
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to