您的位置:首页 > 编程语言 > Java开发

struts Tag标签使用

2016-03-23 08:59 531 查看
//迭代List<Map<key,value>>集合
<s:iterator value="#request.TablePlanListMap"
status="planListMap">
//迭代下标
<s:property value="#planListMap.index"/>
//获取Map中数据
<s:property value="#request.TablePlanListMap[#planListMap.index]['id']"/>
//下拉框默认选中
<option value="overwrite"
<s:if test="#request.TablePlanListMap[#planListMap.index]['writeType']=='overwrite'">selected="selected"</s:if>>
默认</option>
//内容按:切割取下标1.
<s:if test='#request.TablePlanListMap[#planListMap.index]
["hours"].toString().split("\\\\:")[0]==1'>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: