You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shivani Sawhney <sh...@netedgecomputing.com> on 2006/01/16 14:28:28 UTC

Masking in valition-admin.xml

Hi,

 

I have used masking in validation-admin.xml in my project. The problem
is that I want '&' to be allowed to my text boxes on which masking is
done but masking does not allow me to put ampersand. Please help me in
this context.

 

Thanks

 


Re: Masking in valition-admin.xml

Posted by Laurie Harper <la...@holoweb.net>.
Shivani Sawhney wrote:
> Hi,
> 
> I have used masking in validation-admin.xml in my project. The problem
> is that I want '&' to be allowed to my text boxes on which masking is
> done but masking does not allow me to put ampersand. Please help me in
> this context.

You can certainly use '&' characters in regular expression masks, just 
remember that it's a special character in XML. So in your 
validation.xml, you need to write '&' as the character entity reference 
'&amp;'.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org