Hi, I have an integer form field. In my ActionForm I extend the ValidatorForm and i'm trying to Validate that field. My validation.xml for that integer field looks like this <field property="vcoord" depends="required,integer"> <arg0 key="vcoord"/> </field> When i enter my jsp page, this field is automatically set to 0. Even when i remove the 0 and perform the operation , validation doesn't happen. Instead the field is set back to 0. The same problem occurs when i try to enter a string to the integer field and validate it. i.e..it doesn't validate telling that it is not an integer instead the value is set back to 0. Can anybody help?? Thanks in advance.
OK, the text form value is not converted to zero but to null. But If I insert in the form a character, for example, can I have a message type "int required"???