This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes  struts html:checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " struts html:checkbox" Watch " struts html:checkbox" New topic
Author

struts html:checkbox

shawn kennedy
Ranch Hand

Joined: Oct 31, 2002
Posts: 67
Hi guys,
Does anyone know how to get a <html:checkbox> checked if the value is fetched from the database is true and it should be unchecked if the value is true.I have a checkbox called training the value is true
I tried using the formbean.setTraining() to set the value got from the database but it does not seem to check the checkbox whatsoever.
Please help.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Shawn,
You have the right idea. Can you post a piece of the JSP that contains the checkbox?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Michael Enzo
Greenhorn

Joined: Sep 13, 2004
Posts: 4
http://www.coderanch.com/t/49176/Struts/Struts-Iterate-Index-Checkboxes

I use a vector to prepopulate, and the formbean to snag checkbox values and update the vector.


Fear the Qubit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts html:checkbox