interator 循环取值附加索引问题

vigoss1280 2012-09-07 02:20:08
<s:iterator value="#session.findPurchasingThemTheToPurchasingOtherCostSettlementInformation" status="stat" >
<tr>
<input type="text" id="purchasingSettlement.impsBrand" />
<input type="text" id="purchasingSettlement[#stat.index].impsWeight" />
</tr>
</s:iterator>
我要在 ID里面加上索引 怎么加 我写的方法不对啊 求改
...全文
102 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ncist_jianeng 2012-09-07
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]

<input type="text" id="purchasingSettlement%{#stat.index}.impsWeight" />
[/Quote]

<input type="text" id="purchasingSettlement[%{#stat.index}].impsWeight" />试一试
思考人生 2012-09-07
  • 打赏
  • 举报
回复
aldn
木小丰~ 2012-09-07
  • 打赏
  • 举报
回复
<input type="text" id="purchasingSettlement%{#stat.index}.impsWeight" />
AlenOU 2012-09-07
  • 打赏
  • 举报
回复
刚网上查了下,应该是这么写的吧,${stat.index}。不知道是否是对的!

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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