Re: how to validate multiple emails



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

.



Relevant Pages

  • Re: gets() is dead
    ... parses instead of letting you pass multiple arguments. ... validate the input, validate the input and validate the input. ...
    (comp.lang.c)
  • Re: how to validate multiple emails
    ... i know how to validate a single email but dont know for multiple ...
    (comp.lang.java.programmer)
  • Re: Format cell based on date
    ... If you want to determine whether two dates are a multiple of 21 days apart, ... validate and change the color of the text entered if it isn't within a ... Now I need to basically set a schedule of ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Quarter hour validation
    ... easy way to validate this at entry time? ... ' The fractional part is a multiple of 0.25 ... Beware overflows. ...
    (microsoft.public.vb.general.discussion)
  • Re: how to validate multiple emails
    ... in my application i have to validate multiple emails. ... i know how to validate a single email but dont know for multiple emails ...
    (comp.lang.java.programmer)