读书人

struts iterator的用法主要

发布时间: 2012-06-26 10:04:13 作者: rapoo

struts iterator的用法重要

?

    label的属性List 可以写成value="%{label.list}" 相当于:getLabel().getList();

    4:遍历2个list;
    List<AttrName> attrN {color,size,style}
    List<AttrValue> attrV {red,20,gay}
    这2个list的元素是一一对应的,一个attrN对应一个attrV
    attrName is :?<s:property?value='%{attrV[#status.index]}'/>
  1. </s:iterator>??

?

读书人网 >软件架构设计

热点推荐