wood burning stoves 2.0*
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
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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
 
Similar Threads
html:checkbox problem
Prepopulating a jsp form before submitting - using Struts?
html:checkbox
How to enable checkbox from value fetched from database
How to check a checkbox automatically in struts