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有选择是,对应的数量文本框才可以编辑,
否则,屏蔽数量文本框,这里的问题是循环比较麻烦?
大家有什么好的意见?
...全文
74 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
煜知搬砖者 2004-04-12
  • 打赏
  • 举报
回复
可以选定条件后重新触发这个action
软猫克鲁 2004-04-12
  • 打赏
  • 举报
回复
你的问题只能结合javaScript来实现。

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧