Hi all! Been looking all over the net but my validation simply isn't working :(
I have a JSP page with a dropdown box in a form. I just want to make sure the value in the dropdown box is not empty. It currently looks like this: <s:form action=3D"myaction" method=3D"post" validate=3D"true"> <s:actionerror /> <s:fielderror /> <s:select name=3D"fieldName" id=3D"fieldName" theme=3D"simple" size=3D"1" list=3D"fieldList" headerKey=3D"" headerValue=3D"- - Please Select - -"/> <s:submit name=3D"Submit"/> </s:form> My setup is that I have an Action class, which uses a Form to set and get f= ield values from the JSP page. In Struts1 I was using the validate(...) method in the Form class. It seems none of the Struts2 validation examples on the net are working for= me. Or I'm not doing it right. Anyone any ideas how I can do this simply? Cheers! nic ________________________________ The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.