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. -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-do-validation-for-Single-Quote-through-validation-xml-file-tp4619553p4620290.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org