Hi Lukasz,
Thanks for the solution. I will try this. Regards, Jitendra _____ From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Monday, January 19, 2009 2:39 PM To: Struts Users Mailing List Subject: Re: Struts 2 validation is not working for comma separated number entered in text field which has property type integer 2009/1/19 jitendra <jitendra_pa...@persistent.co.in>: > My question is how I can validate the Integer value which has the > commas in it. Basically, we don't want to add any custom validator for > this field because if we do so then we have to apply this validation > through out our application and it is around 150 places. The best solutions is to write your own specific converter for Integer and apply it to whole application using syntax: # syntax: <type> = <converterClassName> java.lang.Integer = com.acme.MyIntegerConverter take a look for section Applying a Type Converter for an application in [1] [1] http://struts.apache.org/2.1.6/docs/type-conversion.html Regards -- Lukasz http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.