Jayaraman, The problem you wrote about sounds like an old bug in the commons-validator.jar which was fixed back in March 2004. http://issues.apache.org/bugzilla/show_bug.cgi?id=30872
A corrected version of the commons-validator.jar is v1.1.3 and is used by the latest stable Struts v1.2.4 release. Perhaps you should consider upgrading? You might - I don't know if this will work - trying replacing your lib/commons-validator.jar with the v1.1.3 one from the Apache Commons Validator project's site: http://jakarta.apache.org/commons/validator/downloads.html Regards, David P.S. You should be able to figure out the version of the Apache commons-validator.jar you are using by extracting that jar file's META-INF/MANIFEST.MF file. In it, the line beginning with "Implementation-Version" should tell you what version of the commons-validator it is using. For Struts v1.2.4, that line reads: "Implementation-Version: 1.1.3". -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 2:37 PM To: [EMAIL PROTECTED] Subject: validator for radio button does not work the client side validator for radio button does not work for required validation. The validation rules check for field.type==radio, but the field.type is 'undefined' when I tried an alert. But field[0].type returned radio. The validation_rules.xml has field.type==radio check all over. Has anyone successfully used this. Since radio buttons usually have one selected as default, this validation may be overlooked. But my requirement specifies not to have a default for the radio, but a validation that it is required. Please let me know if I'm missing anything. Jayaraman --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]