I have added dynamically some radio buttons to a jsp page.
Now i need to use the unique id of the selected radio button,pass it to some other servlet to process it?
How can it be done?
I have added dynamically some radio buttons to a jsp page. Now i need
Share
Place all of your radio buttons within a form that submits to your servlet. Make sure that each of your radio buttons name attributes is set to the same value. Also set the value attribute of each radio button to its respective id. When your form submits, it will pass the value of the selected radio button to the servlet. You can then retrieve the value using
request.getParameter().For more information review this tutorial. http://www.roseindia.net/jsp/radio-button-jsp.shtml