JSF has (ValueChangeListener) which is a listener that is notified of value
changes of radio buttons, check boxes, select item,etc...
Anyway that's JSF, according to JSP, I'm thinking of a way..
I'll get back to you in case of updates..
Note: if you know JSF or want to use this way I can provide you with a snippet.