How to retrieve radio button values with checked state in jsp ? while updating radio button from data base.
Male ">
Female ">
If in database its female it should be in checked state female radio button
else male radio button
its not checking the value for none
解决方案
Try to use JSTL & EL instead of Scriplet elements. For database access use JSTL SQL Tag library or it's better to move the database code in the Servlet.
Sample code:
Male
value="Male" checked>
Female
value="Female" checked>
Have a look at the similar post
EDIT
For check box values single value its show properly but when it multiple values showing nothing.
check the string using contains method.
sample code:
English
checked>
Kannada
checked>
Hindi
checked>