This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX 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
 
jQuery in Action, 3rd edition