<%@ taglib uri="/WEB-INF/displaytag-11.tld" prefix="display" %>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="org.displaytag.sample.*, java.util.*,
                 org.displaytag.tags.TableTag"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>DisplayTag标签库使用示例</title>
	<meta http-equiv="Expires" content="-1" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache-Control" content="no-cache" />
	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
	<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen, print" />
</head>

<body>

<% Object foo = session.getAttribute( "details" );
   if( foo == null ) {
      session.setAttribute( "details", new TestList(10, false) );
   }
   
   request.setAttribute("testparam", "sendamail");
%>

<center>
<h2>具有分页、排序、导出和动态链接功能的表格示例</h2>
</center>
<center>
<display:table name="sessionScope.details" decorator="org.displaytag.sample.Wrapper" export="true" sort="list" pagesize="8">
  <display:column property="link1" title="ID" sortable="true" headerClass="sortable"/>
  <display:column property="email" sortable="true" headerClass="sortable"/>
  <display:column property="link2" title="Actions" />
</display:table>
</center>



</body>
</html>