You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ManiKanta G <ma...@sifycorp.com> on 2008/07/09 13:25:34 UTC
Action method specific custom validation
Hi,
I've three execute() kind of methods in single action.
To validate the data, we can use
actionName-actionAliasName-validation.xml for validating actionName
specific validations.
But how to write custom validate() to deal specifically based on the
method being requested. Is there are provision like
validateMethodsName() kind of thing in S2? or some thing else?
Thanks in advance,
Regards,
ManiKanta G
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@sifycorp.com
Re: Action method specific custom validation
Posted by ManiKanta G <ma...@sifycorp.com>.
Thanks... I'll try right away...
Regards,
ManiKanta
Gabriel Belingueres wrote:
> Yes. To form the validation method name just concatenate "validate"
> with your action's method name.
>
> 2008/7/9 ManiKanta G <ma...@sifycorp.com>:
>
>> Hi,
>>
>> I've three execute() kind of methods in single action.
>>
>> To validate the data, we can use actionName-actionAliasName-validation.xml
>> for validating actionName specific validations.
>>
>> But how to write custom validate() to deal specifically based on the method
>> being requested. Is there are provision like validateMethodsName() kind of
>> thing in S2? or some thing else?
>>
>> Thanks in advance,
>>
>> Regards,
>> ManiKanta G
>>
>>
>>
>>
>> ********** DISCLAIMER **********
>> Information contained and transmitted by this E-MAIL is proprietary to Sify
>> Limited and is intended for use only by the individual or entity to which it
>> is addressed, and may contain information that is privileged, confidential
>> or exempt from disclosure under applicable law. If this is a forwarded
>> message, the content of this E-MAIL may not have been sent with the
>> authority of the Company. If you are not the intended recipient, an agent of
>> the intended recipient or a person responsible for delivering the
>> information to the named recipient, you are notified that any use,
>> distribution, transmission, printing, copying or dissemination of this
>> information in any way or in any manner is strictly prohibited. If you have
>> received this communication in error, please delete this mail & notify us
>> immediately at admin@sifycorp.com
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Action method specific custom validation
Posted by Gabriel Belingueres <be...@gmail.com>.
Yes. To form the validation method name just concatenate "validate"
with your action's method name.
2008/7/9 ManiKanta G <ma...@sifycorp.com>:
> Hi,
>
> I've three execute() kind of methods in single action.
>
> To validate the data, we can use actionName-actionAliasName-validation.xml
> for validating actionName specific validations.
>
> But how to write custom validate() to deal specifically based on the method
> being requested. Is there are provision like validateMethodsName() kind of
> thing in S2? or some thing else?
>
> Thanks in advance,
>
> Regards,
> ManiKanta G
>
>
>
>
> ********** DISCLAIMER **********
> Information contained and transmitted by this E-MAIL is proprietary to Sify
> Limited and is intended for use only by the individual or entity to which it
> is addressed, and may contain information that is privileged, confidential
> or exempt from disclosure under applicable law. If this is a forwarded
> message, the content of this E-MAIL may not have been sent with the
> authority of the Company. If you are not the intended recipient, an agent of
> the intended recipient or a person responsible for delivering the
> information to the named recipient, you are notified that any use,
> distribution, transmission, printing, copying or dissemination of this
> information in any way or in any manner is strictly prohibited. If you have
> received this communication in error, please delete this mail & notify us
> immediately at admin@sifycorp.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org