Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

masking validation problem

 
ramandeep singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to use regular expression in struts validation.xml but
i am not able to use "&" even after changing it to \&

<field property="publication" depends="mask" >
<msg name="mask"
key="errors.invalidcontent"/>
<arg0 key="resume.email"/>

<var>
<var-name>mask</var-name>
< var-value>^[a-zA-Z0-9@.#$%\\&*!]*$</var-value>
</var>
</field>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic