By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,034 Members | 820 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,034 IT Pros & Developers. It's quick & easy.

Help with DisplayTag paging

P: n/a
Hello,

I have been trying to implement a result table using the
http://www.displaytag.org display tag.

It works fine except for the fact that when I use paging, and click on
the next page, the results in the table are gone, yielding no data.
How can I keep the data when the user clicks on a result page?

I pass this jsp page an attribute in the request called "qresults".
It is an ArrayList. The page code is below, thanks in advance for you
help!

<!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">
<%@ taglib uri="displaytag-11.tld" prefix="display" %>
<%@ page import="org.displaytag.sample.*,
java.util.*,org.displaytag.tags.TableTag,bear.*"%>
<% TableTag.checkCommonsLang(); %>
<title>Results</title>
<head>
</head>
<body>
<display:table name="qresults" export="true" sort="list"
pagesize="10">
</display:table>
</body>
</html>
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.