aspose file tools*
The moose likes Struts and the fly likes How to set check/unckeck Checkbox using database value(I am using <html:checkbox>) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to set check/unckeck Checkbox using database value(I am using <html:checkbox>)" Watch "How to set check/unckeck Checkbox using database value(I am using <html:checkbox>)" New topic
Author

How to set check/unckeck Checkbox using database value(I am using <html:checkbox>)

andrew ronchi
Ranch Hand

Joined: Nov 03, 2011
Posts: 35

hi,
i am using an <html:checkbox> tag in my jsp page.
correspondingly i have a column in database which store either on or off value.
so i want to show that check box checked if its value in database is ON..otherwise unchecked.
how can i do that.
i want same for radio buttons too.....thank you
 
Consider Paul's rocket mass heater.
 
subject: How to set check/unckeck Checkbox using database value(I am using <html:checkbox>)
 
Similar Threads
How to make a checkbox checked using struts tag
struts html:checkbox
Iterate tag
check box with html:checkbox
How to make checkbox checked in display tag