首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

iterator 标签的应用

2012-09-21 
iterator 标签的使用custPersonalInfo输出数组:定义: String[] propertyNamesnew String[100]select id

iterator 标签的使用

custPersonalInfo

输出数组:定义: String[] propertyNames=new String[100]<select id="matchProperties" name="matchProperties">   <s:iterator value="propertyNames">     <option value="<s:property/>">         <s:property/>     </option>   </s:iterator></select>输出List<String>:初始select选中项,并且迭代fee=List<String>    <select id="productFee" name="productFee" status="dex">          <s:set name="index" value="#dex.getIndex()"/>          <option value="<s:property value="fee.get(#index)"/>"              <s:if test="productFee == fee.get(#index)">                  selected="selected"               </s:if>                     >               <s:property value="fee.get(#index)"/>           </option>     </s:iterator></select>
?

热点排行