• Post Reply Bookmark Topic Watch Topic
  • New Topic

Checkbox inside table in JSP

 
Neha k Agrawal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All ,
I am doing one project in that I want to insert checkbox inside table according to the data fetch from database.There will be 3 check boxes in my table on JSP page.There is one field in my table called "Status".
If Status field value is 1 , first check box (Enable ) should get checked.
If Status field value is 2 , first check box (Disable ) should get checked.
If Status field value is 3 , first check box (Deleted ) should get checked.

I am not getting how to do it.I have tried one grid tld.But it is not working.I am new to this language.Please help me.Any sample code or idea of how to do it will be really helpful.Thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neha,
What do you have so far? Can you output the three checkboxes? Can you output a message if the status is equal to 1, 2 or 3?
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Neha k Agrawal:
Hello All ,
I am doing one project in that I want to insert checkbox inside table according to the data fetch from database.There will be 3 check boxes in my table on JSP page.There is one field in my table called "Status".
If Status field value is 1 , first check box (Enable ) should get checked.
If Status field value is 2 , first check box (Disable ) should get checked.
If Status field value is 3 , first check box (Deleted ) should get checked.

I am not getting how to do it.I have tried one grid tld.But it is not working.I am new to this language.Please help me.Any sample code or idea of how to do it will be really helpful.Thanks in advance.


Hi Neha
I was a bit confused on reading your question. Do you have 1 or 3 checkboxes in the table. Also, how is the Status field related to the 3 checkboxes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!