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

Reply via email to