You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Niebert, Tanja" <Ta...@t-systems.com> on 2004/10/14 08:13:21 UTC
Validator: Using "<" and ">" in a mask
Hi,
I want to create a mask validation where I allow alphanumeric characters plus the "<" and ">" signs. Using "\<" and "\>" doesn't work. I get an exception saying, that the XML-File is not well formed.
This is how my expression looks like:
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z\<\>]*$</var-value>
</var>
Thanks for your help
Tanja
Re: Validator: Using "<" and ">" in a mask
Posted by Arnaud Vandyck <av...@debian.org>.
Thu, 14 Oct 2004 08:13:21 +0200,
"Niebert, Tanja" <Ta...@t-systems.com> wrote:
> Hi,
>
> I want to create a mask validation where I allow alphanumeric
> characters plus the "<" and ">" signs. Using "\<" and "\>" doesn't
> work. I get an exception saying, that the XML-File is not well formed.
>
> This is how my expression looks like:
>
> <var>
> <var-name>mask</var-name>
> <var-value>^[0-9a-zA-Z\<\>]*$</var-value>
This is not valide xml, maybe you can try:
<var-value>^[0-9a-zA-Z<>]*$</var-value>
> </var>
>
> Thanks for your help
Hope this will help, I did not test it.
--
Arnaud Vandyck
http://fosdem.org/
Free and Open Source Developers' European Meeting
February 26-27 2005,
Bruxelles, Belgium
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org