日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

list集合存list 以及s标签在foreach循环遍历中用EL表达式取值

發(fā)布時間:2023/12/20 编程问答 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 list集合存list 以及s标签在foreach循环遍历中用EL表达式取值 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

特點總結(jié): 在一個iterator集合容器中遍歷另外一個list中的list的,通過iterator中的 status="status"狀態(tài)為,同時 <a href="<s:url action="fileformAction_download"/>?fileid=${bean.fileid}">${bean.filename}</a> 解決了s標(biāo)簽中無法用EL表達(dá)式取值的難題。controller中的代碼: List<List<Fileform>> fileformlilist=new ArrayList<List<Fileform>>();for(int i=0;i<projectlist.size();i++){List<Fileform> filelist=fileformService.ByOtherId(projectlist.get(i).getProjectid());fileformlilist.add(i, filelist);}ActionContext.getContext().put("fileformlilist", fileformlilist);jsp中的代碼: <tbody id="TableData" class="dataContainer" datakey="projectList"><s:iterator value="#getProjectpage" status="status"><tr class="TableDetail1 template"><td align="center">${status.index + 1}?</td><td align="center">${projectname}?</td><td align="center">${employeename}?</td><td align="center"><c:forEach items="${fileformlilist.get(status.index)}" var="bean"><a href="<s:url action="fileformAction_download"/>?fileid=${bean.fileid}">${bean.filename}</a></c:forEach></td><td align="center"><s:a action="projectAction_infoUI?projectid=%{projectid}">查看</s:a> <s:a action="projectAction_editUI?projectid=%{projectid}">修改</s:a> <s:a action="projectAction_delete?projectid=%{projectid}" οnclick="return window.confirm('這將刪除本條宿舍信息,你確定要刪除嗎?')">刪除</s:a></td></tr></s:iterator></tbody></span>

總結(jié)

以上是生活随笔為你收集整理的list集合存list 以及s标签在foreach循环遍历中用EL表达式取值的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。