in your jsp head tag.. <s:head theme="?"/> what value have you assigned to theme?
M- ----- Original Message ----- From: "Mitch Claborn" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <user@struts.apache.org> Sent: Thursday, October 11, 2007 5:38 PM Subject: Client side validation for radio button Using the xhtml theme, client-side validation for radio button is not working. I've tried both "required" and "requiredstring" but I suspect that none will work. The javascript code (from form-close-validation.ftl) does this: function validateForm_Question() { form = document.getElementById("Question"); if (form.elements['q1']) { field = form.elements['q1']; var error = "Please answer q1"; if (field.value == "") { addError(field, error); errors = true; } } Which doesn't get the actual value of the selected radio. I can code a workaround in form-close-validation.ftl but it seems like this would have been solved already? Mitch Claborn [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]