struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From log2akshat <akshat-...@iiitmk.ac.in>
Subject Re: How to do validation for Single Quote (') through validation.xml file?
Date Thu, 21 Jul 2011 17:07:21 GMT
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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message