In Action:
if ("Y".equals(myForm.getAccept)) { return mapping.findForward("accept") } else { return mapping.getInputForward(); }
-- Jeff
Wendy Smoak wrote:
I have a form on which the user must accept the terms and conditions when registering for an account. This is done with a pair of radio buttons set to "Y" or "N". (It defaults to "N".)
What is the best way to set up validation for this field so that if the user does not change the selection to "Y", the form is re-displayed with an error message?
How do I validate that a form field is exactly equal to a string?
Thanks, Wendy Smoak
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]