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

📄 example-grouping.jsp

📁 一个比较不错的java分页标签,有源代码,开发者 可以学习学习
💻 JSP
字号:
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:display="urn:jsptld:http://displaytag.sf.net">
  <jsp:directive.page contentType="text/html; charset=UTF-8" />
  <jsp:directive.page import="org.displaytag.sample.*" />
  <jsp:include page="inc/header.jsp" flush="true" />

  <jsp:scriptlet> request.setAttribute( "test", new ReportList() ); </jsp:scriptlet>

  <h2>Column grouping</h2>

  <display:table name="test" class="simple">
    <display:column property="city" title="CITY" group="1" />
    <display:column property="project" title="PROJECT" group="2" />
    <display:column property="amount" title="HOURS" />
    <display:column property="task" title="TASK" />
  </display:table>


  <p>You have a List who's objects are sorted and grouped by column A, column B and column C, so instead of repeating
  columns A, B over and over again, it does a grouping of those columns, and only shows data in those columns when it
  changes. Think of reports... We use the this display tag as a key part of our reporting framework.</p>

  <p>Grouping is straight-forward, simply make sure that your list that you are providing is sorted appropriately, then
  indicate the grouping order via the <strong>group</strong> attribute of the column tags.</p>


  <jsp:include page="inc/footer.jsp" flush="true" />

</jsp:root>

⌨️ 快捷键说明

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