Radio button values are typically sent to a
servlet when the submit button is clicked. I'm not sure what you mean by getting the value with JavaScript. Do you mean you want to bind to the click event and get the name/value the instant a radio button is clicked? What if the user changes their mind and clicks a different one? How is the final choice submitted?
Perhaps
you should explain a bit more about what you are trying to do instead of how you want to do it. What problem are you trying to solve?