On 07/21/2011 08:07 PM, log2akshat wrote:
I got the Solution:<field name="Knowing"> <field-validator type="regex"> <message key="validate_appos"/> </field-validator> </field> But how can I escape the ' to display by .properties file in error message. I used (\') but its not working. Please anybody can help me on how to validate the number of words typed on click of submit button by validation.xml file.
AFAIK escaping of single-quotes is not required in property files but stuff like java.text.MessageFormat - try double apos instead ('')
hth, Manos --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

