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

📄 example-callbacks.jsp

📁 分页标签
💻 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(10) ); </jsp:scriptlet>  <h2>Using callbacks to show totals</h2>  <display:table name="test" class="simple nocol" decorator="org.displaytag.decorator.TotalTableDecorator">    <display:column property="city" title="CITY" group="1" />    <display:column property="project" title="PROJECT" group="2" />    <display:column property="amount" title="HOURS" total="true" />    <display:column property="task" title="TASK" />  </display:table>  <p>The decorator API provides more then just the ability to reformat data before it is put into columns, it also  provides a hook that allows you perform some action on the table after each row is processed. This allows you to  interject some code that allows you to figure out where you are in the list of data, and then insert an additional row  with totals, etc... Typically you would use this functionality along with <a href="./example-grouping.jsp">grouping</a>  features to spit out some nice web based reports.</p>  <p>See the TableDecorator.finishRow() API documentation, along with the example decorator that is used in this example  page.</p>  <jsp:include page="inc/footer.jsp" flush="true" /></jsp:root>

⌨️ 快捷键说明

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