How to make checkbox checked

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to make checkbox checked

Raaja G
This post was updated on .
Hi,

I am having display table like below.


<display:table id="data" name="deptUsers" requestURI="/getUsersByDepartmentProfile.do"
 pagesize="10" cellpadding="2" cellspacing="2"  decorator="com.krishct.efiler.user.documents.DownloadDecorator">
        <display:column property="branch" title="Branch" sortable="true" style="text-align:center;" />
        <display:column property="loginId" title="User Name"sortable="true" style="text-align:center;" />
        <display:column title="View" style="text-align:center;">
                            <html:multibox name="deptUsers" property="view" /> 
         </display:column>
        <display:column title="Review" style="text-align:center;">
                       <html:multibox name="deptUsers" property="review" /> 
        </display:column>
</display:table>

I want the checkboxes get selected if the value from the database is on and others unchecked and if I select some other check boxes in different pages of the table and submit them they should be stored in database.

How to achieve this please guide me.

--regards,
raaja.g