This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 .