You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Gupta, Vikas" <Vi...@adp.com> on 2007/09/12 06:53:52 UTC

Multiple field validation in struts2

Hello every one


I am new to struts2, and I am facing one problem related to validation
in struts2 , pls help me

I want to have multiple validation on one text box , but it is not
working as per required.

I have one text box (user name), I want 2 validation on this text box 1)
field should not be left blank (2) the name should not be more then 15
characters, 

How to perform this vallidaitons , pls do guide me

Thanks
Vikas gupta

-----------------------------------------
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended
recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Multiple field validation in struts2

Posted by Antonio Petrelli <an...@gmail.com>.
Please ask this question to the Struts Users mailing list:
http://struts.apache.org/mail.html
Anyway, before asking questions, I suggest you to read some documentation,
e.g.:
http://struts.apache.org/2.0.9/docs/validation.html

Antonio

2007/9/12, Gupta, Vikas <Vi...@adp.com>:
>
> Hello every one
>
>
> I am new to struts2, and I am facing one problem related to validation
> in struts2 , pls help me
>
> I want to have multiple validation on one text box , but it is not
> working as per required.
>
> I have one text box (user name), I want 2 validation on this text box 1)
> field should not be left blank (2) the name should not be more then 15
> characters,
>
> How to perform this vallidaitons , pls do guide me
>
> Thanks
> Vikas gupta
>
> -----------------------------------------
> This message and any attachments are intended only for the use of
> the addressee and may contain information that is privileged and
> confidential. If the reader of the message is not the intended
> recipient or an authorized representative of the intended
> recipient, you are hereby notified that any dissemination of this
> communication is strictly prohibited. If you have received this
> communication in error, notify the sender immediately by return
> email and delete the message and any attachments from your system.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>