If the underlying property is a boolean, you simply need <html:checkbox property="urgent" /> If you want to use String values, use multibox <html:multibox property="urgent" value="very" /> <html:multibox property="urgent" value="notvery" /> <html:multibox property="urgent" value="notatall" /> You'll also need to override the ActionForm's reset() method to set any properties related to checkboxes to their "unchecked" state.
boolean bnCheckbox = true;// this is the value i get from my data base.if true then checkbox should be clicked.
Formbean.setCheckbox(bnCheckbox);// now i set the value of checkbox to form bean. //now using the above value i want to display my checkbox as checked what code should i write after this struts tag <html:checkbox if any one can help me in this sample .
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How to enable checkbox from value fetched from database