首页 > 移动平台 > 详细

append标签连接多个List

时间:2015-07-03 23:13:25      阅读:330      评论:0      收藏:0      [点我收藏+]
 1 <%@ page language="java" contentType="text/html; charset=UTF-8"%>
 2 <%@ taglib uri="/struts-tags" prefix="struts"%>
 3 <%@ taglib uri="/struts-tags" prefix="s"%>
 4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 5 <html>
 6 <head>
 7 <title>My JSP ‘index.jsp‘ starting page</title>
 8 <meta http-equiv="pragma" content="no-cache">
 9 <meta http-equiv="cache-control" content="no-cache">
10 <meta http-equiv="expires" content="0">
11 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
12 <meta http-equiv="description" content="This is my page">
13 <!--
14     <link rel="stylesheet" type="text/css" href="styles.css">
15     -->
16 
17 <struts:head theme="ajax" />
18 
19 <style type="text/css">
20 body,td {
21     font-size: 12px;
22 }
23 </style>
24 </head>
25 
26 <body>
27 
28 
29 <h3><font color="#0000FF"> &lt;struts:append /&gt;标签 </font></h3>
30 
31 <s:append id="myAppendList">            <!-- 在myAppendList后面追加数据 -->
32     <s:param value="%{maleList}" />     <!-- 追加maleList -->
33     <s:param value="%{femaleList}" />   <!-- 追加femaleList -->
34 </s:append>
35 <s:iterator value="%{#myAppendList}">   <!-- 遍历myAppendList -->
36     <s:property /> <br/>                <!-- 输出里面的每一个值 -->
37 </s:iterator>
38 
39 </body>
40 </html>

 

append标签连接多个List

原文:http://www.cnblogs.com/Nickzerui/p/4619857.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!