• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generate Dynamic Checkboxes with the database values  RSS feed

 
Reegan Lourduraj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir,how can i generate the dynamic checkboxes with the help of database values in JSP? another question

How can i load the jsp page with the help of checkbox control? please provide examples and help me sir
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reegan did you try to create it a little bit. You just need to get the values from the database in your servlet and then iterate over it in your JSP to generate the checkboxes. Try to create some code, show it to us, and then we'll try to help you with any difficulties.

Also if you want to do some action when a checkedbox is selected, then you can use the onclick event of the checkbox to call some javascript, with which you can submit a form or take the user to another page...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!