Hello All,
I am using
Struts 2 and validate int value using code for this
<field name="maximumTitleSize">
<field-validator type="conversion" short-circuit="true">
<message>
Conversion Error (Integer Wanted) for Maximum Title Size
In Bytes.
</message>
</field-validator>
<field-validator type="int">
<param name="min">0</param>
<param name="max">2147483647</param>
<message>
Positive Integer value required for Maximum Title Size
In Bytes. Maximum value allowed is ${max}.
</message>
</field-validator>
</field>
as int max size is 2147483647 but if i insert 2147483647222 then it shows negative (-ve) value.
please let me know if any one know solution for this.