The data comes from a List which can be set as a request Attribute. Harsh.
P.S.: I also had to do a pagination solution for my project. After working with it for a while, I did not found it to be very useful except for the simplest of cases. My major beef with DT is the location of the TLD file. The TLD is included as part of the JAR. That makes it hard to extend any of DT's functionalities. Not impossible but hard. The TLD should just work like struts TLD's or validation TLD's, put it in WEB-INF and extend whatever you want. Unless I am missing something. Anyways, I ended up rolling my own pagination logic, which surprisingly is not hard at all and we can avoid the overhead of yet another library. My 2 cents. -----Original Message----- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 1:09 PM To: strutsApache Subject: display tag ?? Hi, I found this display tag, but I don't understand where data come from : http://displaytag.homeip.net/displaytag-examples-1.1/example-nocolumns.j sp The source code : <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" /> <h2>Simplest case, no columns</h2> <jsp:scriptlet> request.setAttribute( "test", new ReportList(6) ); </jsp:scriptlet> <display:table name="test" /> <p>The simplest possible usage of the table tag is to point the table tag at a java.util.List implementation and do nothing else. The table tag will iterate through the list and display a column for each property contained in the objects.</p> <p>Typically, the only time that you would want to use the tag in this simple way would be during development as a sanity check. For production, you should always define at least a single column.</p> <jsp:include page="inc/footer.jsp" flush="true" /> </jsp:root> Thank you, your help is appreciated. --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]