| 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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26201
|
|
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
|
 |
 |
|
|
subject: struts html:checkbox
|
|
|