Hi, I need help for mandatory field validation for s:select. I am trying to do client side xml validation.
jsp code for country list: <s:select name="user.country" headerKey="-1" headerValue="Select Country" list="countryList" listKey="code" listValue="name" required="true" /> I tried with below validation code but it is not working.. Not sure what will be other approach.. <field name="user.country"> <field-validator type="fieldexpression"> <param name="expression"><![CDATA[user.country == '-1']]></param> <message key="required.country"></message> </field-validator> </field> Thanks a lot...