哪位对老兄对struts比较熟呀,帮帮小弟吧
我要在jsp页面中显示一个表格,代码如下:
<table width="600" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="BrowseInfoHeader">层次</td>
<td class="BrowseInfoHeader">专业</td>
<td class="BrowseInfoHeader">学习方式</td>
<td class="BrowseInfoHeader">开设</td>
</tr>
<logic:iterate id="centerPlanItems" name="centerPlanItemList">
<tr>
<td class="BrowseInfo3"><bean:write name="centerPlanItems" property="eduLevel.name"/></td>
<td class="BrowseInfo4"><bean:write name="centerPlanItems" property="speciality.name"/></td>
<td class="BrowseInfo3"><bean:write name="centerPlanItems" property="studyForm.name"/></td>
<td class="BrowseInfo4"><html:checkbox name="centerPlanItems" property="isAlive" value="isAlive" /></td>
<!-- 我的问题就在这一句 -->
</tr>
</logic:iterate>
</table>
现在的我的要求是:在表格的最后一列显示一个checkbox,并根据isAlive的属性值来决定是否选中,其中isAlive属性的值为0或1,值为1则选中checkbox,是0就不选中,可在页面上显示出来后,checkbox总是不能选中,不管isAlive是0还是1,那我该怎么实现我想要的功能呢?请各位高手帮忙指点一下,小弟不胜感激,当然,分我不会少给的。