I'm just wondering if it's possible to validate or check that at least one radio button has been selected on a form within a servlet?
Or can this type of validation only occur on the client side with JavaScript etc?
As a workaround, I can check a radio button by default, but ideally I would like no radio button initially selected and display an error message if the user tries to submit the form.
I'm only using Java servlets on the web app so it would be great if anyone has done this before using servlets only.
Thanks in advance.