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?
Asked
Active
Viewed 23 times
-2
-
Don't submit the form unless a selection has been made. – Mathemats Jan 14 '16 at 01:09
1 Answers
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
- 43,525
- 5
- 33
- 63