Re: how to validate multiple emails
- From: "shailajabtech@xxxxxxxxx" <shailajabtech@xxxxxxxxx>
- Date: 30 Jan 2007 02:59:22 -0800
On Jan 30, 3:25 pm, "ali" <ali4ev...@xxxxxxxxx> wrote:
On Jan 30, 12:36 pm, "shailajabt...@xxxxxxxxx"
<shailajabt...@xxxxxxxxx> wrote:
hi all,
in my application i have to validate multiple emails .
in the Application we are using jsp's, struts.
i know how to validate a single email but dont know for multiple
emails
if anybody know the solution how to validate them please reply back.
Thanks in Advance
if you means that you would like to check the email is correct by
(validate)
then doing so for multiple email
is just tokinize the emails string using yourString.splite(",");
then trim each token
and do your validation for each token
Is that what you are asking about ?!
in the jsp
in the text field am adding multiple emails with comma seperated.
using dynavalidatorForm defined in the struts-config.xml am getting
in to the Action class.
in the Action class am doing tokenization and trimming operations
but how to validate them ( checking whether is it correct email
format or not)
before when i have to validate single email,then i declared that field
in the validation.xml
but u told that after tokennizing do validation,but how .
i think it may not work.
if u know please explain me clearly, so that i can understand.
thanQ
.
- Follow-Ups:
- Re: how to validate multiple emails
- From: Alex Hunsley
- Re: how to validate multiple emails
- From: dagarwal82@xxxxxxxxx
- Re: how to validate multiple emails
- References:
- how to validate multiple emails
- From: shailajabtech@xxxxxxxxx
- Re: how to validate multiple emails
- From: ali
- how to validate multiple emails
- Prev by Date: Re: JVM/Java memory footprint
- Next by Date: Re: java or C++ ??
- Previous by thread: Re: how to validate multiple emails
- Next by thread: Re: how to validate multiple emails
- Index(es):
Relevant Pages
|