hot的学习笔记

我是一只弱小的毛毛虫,想像有一天可以成为强壮的挖土机, 拥有挖掘梦想的神奇手套。。。

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  8 随笔 :: 0 文章 :: 1 评论 :: 0 Trackbacks

设置变量
<s:set name="maxRowIndex" value="%{formInfo.maxRowIndex}"/>

for 循环
<s:bean name="org.apache.struts2.util.Counter" id="counter">
  <s:param name="first" value="0" />
  <s:param name="last" value="#maxRowIndex" />
  <s:iterator>
  </s:iterator>
</s:bean>

迭代<s:iterator>用于将List、Map、ArrayList等集合进行循环遍历
<s:iterator value="#rowList">
</s:iterator>

if语句
<s:if test="#rowList==null">
</s:if>

生成html代码
<s:property value="%{formInfo.jsCode}" escape="false"/>
escape="false" 不进行转义

posted on 2009-07-21 14:21 hot 阅读(227) 评论(0)  编辑  收藏 所属分类: j2ee

只有注册用户登录后才能发表评论。


网站导航: