If a value of 0 is returned from database then the checkbox shold be checked and if 1 then not. Please suggest me how do i design this? Should i make both of them rendered on the page? I have to send the value 0 or 1 based on the selected or not when the page submitted.
posted 8 years ago
You don't need the logic:equals tags. Just specify initial="0" when you define the chkDO property in the struts-config.xml file. Then just use the <html:checkbox> tag in your JSP. Example: