aspose file tools*
The moose likes Struts and the fly likes Validate multiple Email address in validation.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validate multiple Email address in validation.xml file" Watch "Validate multiple Email address in validation.xml file" New topic
Author

Validate multiple Email address in validation.xml file

Smriti Anchu
Ranch Hand

Joined: Dec 21, 2004
Posts: 40
Hi all,

This is the code written in validation.xml file.. now its validating multiple email address...but here dot (.) is optional,if i make dot (.) compulsory by giving something like this (\.) , it wont take next email(eg. a@a.com,b@g.com)

<field property="email"
depends="mask">
<arg0 key="createperson.email" />
<var>
<var-name>mask</var-name>
<var-value>^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$</var-value>
</var>
</field>

Kindly help me in this

bye
smriti
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validate multiple Email address in validation.xml file
 
Similar Threads
Validating password field
masking validation problem
mask is not working
Struts Validator not validating on the server-side
How to check if field exist in validation.xml