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 .
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads