-2

I have a form with a bunch of radio buttons, and a submit button. When a radio button is selected, I'm passing a query string to the servlet for further processing. But when none is selected and the Submit button is pressed, I get an exception, obviously. Is there anyway to avoid this? As in, avoid submitting empty forms using JSTL?

1 Answers1

0

You can disable the submit button until a selection is made. Try using JavaScript or Jquery

see JQuery Onselect?

Community
  • 1
  • 1
Scary Wombat
  • 44,617
  • 6
  • 35
  • 64