It's not a secret anymore!*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 38

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set check/unckeck Checkbox using database value(I am using <html:checkbox>)
 
Similar Threads
How to make checkbox checked in display tag
check box with html:checkbox
struts html:checkbox
How to make a checkbox checked using struts tag
Iterate tag