struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prabhubalaji Ragavan <prabhubalaji.raga...@gmail.com>
Subject Validation xml for Radio button
Date Mon, 15 Nov 2010 10:44:50 GMT
Hi
I am using a radio option in my code. when i try to validate that thru the
validator.xml, the validation is not happening.

this is my jsp content.

<s:radio label="Answer" name="yourAnswer" list="#{'1':'Yes','2':'No'}" />

this is my validator.xml content

<field name="yourAnswer">
       <field-validator type="fieldexpression">
            <param name="expression"><![CDATA[(yourAnswer == "1")]]></param>
            <message>enter gen1</message>
    </field-validator>
    </field>


Please help, am new to struts2.

Thanks
Prabhu Ragavan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message