You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erez Efrati <er...@netmedia.net.il> on 2003/05/10 00:45:35 UTC
validator mask using unicode - please help
I can't figure out the support for Unicode / locale in the validator. I
am trying to use a mask on a firstName field. The mask is restricted to
only Hebrew letters. It works for the client-side but the server side
keeps failing the validation. Please help...
Here is what I wrote in the validation.xml:
<form name="signupForm">
<field property="user.firstName"
depends="required, mask"
page="1">
<arg0 key="userInfo.firstName"/>
<var>
<var-name>mask</var-name>
<var-value>^[\u05d0-\u05fa]*$</var-value>
</var>
</field>
</form>
Best regards,
Erez
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org