struts中标签的控制问题
linsr 2004-04-12 02:55:27 <tr>
<td class="head">选择</td>
<td class="head">装订项目</td>
<td class="head">计量单位</td>
<td class="head">标准价</td>
<td class="head">数量</td>
</tr>
<logic:iterate id="otheritem" name="others">
<bean:define property="pbdpid" name="otheritem" id="pbdpid"/>
<tr>
<td class="body"><html:multibox name="otheritem" property="bdpid" value="<%=String.valueOf(pbdpid)%>"/></td>
<td class="body"><bean:write name="otheritem" property="bdpitem" /></td>
<td class="body"><bean:write name="otheritem" property="bdpunit" /></td>
<td class="body"><bean:write name="otheritem" property="bdpstdprice" /></td>
<td class="obody"><html:text name="otheritem"
onblur="checkNumCHK('数量必须填入数值型数据!',this);" property="bdiquantity"/></td>
</tr>
</logic:iterate>
在这里通过<logic:iterate>标签来控制循环,最后通过两个数组来取得bdpid,
bdiquantity
现在我想在页面进行控制,当checkbox有选择是,对应的数量文本框才可以编辑,
否则,屏蔽数量文本框,这里的问题是循环比较麻烦?
大家有什么好的意见?