• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Checkbox inside table in JSP

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41763
887
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic