Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Validation Annotations

cilquirm

2007-01-08

Replies:


According to http://struts.apache.org/2.x/docs/validation-annotation.html

you can specify annotations at the method level.



André Faria-3 wrote:
>
> Hi People!!!
>
> Is there a way to use Validation Annotations only for a method or always
> for the action...
>
> Example, if I have a action PersonAction with three methods:
>
> public class PersonAction {
>   public void execute(){}
>   public void list(){}
>   public void save(){}
> }
>
> But I have to validate the user input only in method save what could I do?
>
>
> Have a nice weekend,
> Thank's for help,
> André Faria
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.