Hi ,
I am having trouble in validating "+" symbol using
struts validatin framework
this is my entry in validation.xml
<form name="accountQueryForm">
<field
property="accountNumber"
depends="mask">
<arg key="prompt.accountnumber"/>
<arg1 key="errors.alphanumeric"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z&@_()$*-/,.]*$</var-value>
</var>
</field>
<form>
But the framewotrk is not able to validate + character . ie Even if user enters + character the error message is not shown . It works fine for other characters like #,% etc but + seems to create a problem . In regular expressions i know it is a metacharacter and has special meaning but not able to figure out the problem
Can some one give some pointers how i can solve this problem