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'>
相关文章推荐
- eclipse ADT
- 【集合框架】JDK1.8源码分析之LinkedList(七)
- javaEE MyEclipse下SSH框架搭建+测试
- Spring Mvc——Controller中常规方法示例
- Spring Mvc——Controller中常规方法示例
- 举例讲解Java编程中this关键字与super关键字的用法
- Struts2 S2-029远程代码执行漏洞
- java多线程回顾1:线程的概念与创建
- springMVC传递日期类型参数
- <转载> JavaSript模块规范 - AMD规范与CMD规范介绍
- [J2EE]java操作json
- spring初步和struts2整合
- Java命名规范及给自己写的方法添加注解
- Spring源码之bean的加载(五)准备创建bean
- Spring源码之bean的加载(四)获取单例
- Spring源码之bean的加载(三)从bean中获取对象
- Spring源码之bean的加载(二)获取单例bean
- Spring源码之bean的加载(一)
- Java 反射机制理解
- Java NIO和IO的主要区别