⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 displ-56.jsp

📁 displaytag-1.0修正版
💻 JSP
字号:
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" 
    xmlns:display="urn:jsptld:../../../src/tld/displaytag-el-12.tld"
    xmlns:c="urn:jsptld:../WEB-INF/tld/c.tld">
    <jsp:text> <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ]]> </jsp:text>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
            <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
            <title>Displaytag unit test</title>
        </head>
        <body>
						<jsp:declaration>
						  public class ValueBean {
						    public ValueBean(String value) {
						      this.value=value;
						    }
						    private String value;
						    public String getValue() {
						      return this.value;
						   }
						  }
						</jsp:declaration>
            <jsp:scriptlet> <![CDATA[
                java.util.List theList = new java.util.ArrayList();
							  theList.add(new ValueBean("1"));
							  theList.add(new ValueBean("2"));
							  theList.add(new ValueBean("3"));
						
						    request.setAttribute("row0",new java.util.ArrayList(theList));
						    request.setAttribute("row1",new java.util.ArrayList(theList));
						    request.setAttribute("row2",new java.util.ArrayList(theList));
            ]]> </jsp:scriptlet>
					<c:forEach var="item" items="0,1,2">
						<display:table uid="row${item}" name="row${item}" sort="list" >
						  <display:column property="value" sortable="true"/>
						</display:table>
          </c:forEach>
        </body>
    </html>
</jsp:root>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -