So. There are two ways to work around this. One is to fiddle with code. I'm *sure* (or at least I really hope) that there's a programmatic way to affect this. I have no idea what this would be, though, although *maybe* a ColumnDecorator could do it? No, maybe not...
Anyways, the easy way to do it is to specify the requestURI parameter on the <display:table> tag. You'd do something like this:
<%
StringBuffer requestURI = new StringBuffer("/searchContacts.do");
requestURI.append("?country=").append(country);
requestURI.append("&contactType=").append(contactType);
// And so on until all params are added...
%><display:table property="whatever" requestURI="<%= requestURI.toString() %>">
<!-- ... -->
</display:table>
You may need to fidget with that string a bit to get it to work properly. The main thing is I'm not sure how displaytag will handle already having parameters on the request URI, specifically will it add the '&' and '?' param separators properly? I dunno, but I do know that this works, since I've used it before, I just don't have the code in front of me.
Paul McCulloch wrote:
I'm afraid there isn't enough information here for me to figure out what the problem is or what is going on.
I *may* be able to offer some help if you describe the situation that works and the behaviour the display tag exhibits in that case, including the URLs of the paging links, and if you do the same for the situation that doesn't work as you expect.
Paul -----Original Message----- From: Peg Flick [mailto:[EMAIL PROTECTED] Sent: 2005/20/04 15:18 To: [email protected] Subject: RE: [displaytag-user] Pagination parameters lost
The pagination is correctly displayed. However when I click on the next page or a page number, the parameters that were there the first time (looks like my query parameters ) are now gone and all I see is:
http://localhost:8080/searchContacts.do?d-49653-p=2
as opposed to:
http://localhost:8080/searchContacts.do?country=&d-49653-p=2&contactType=Boa rd+of+Directors®ion=&state=&role=
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul McCulloch Sent: Wednesday, April 20, 2005 10:02 AM To: [email protected] Subject: RE: [displaytag-user] Pagination parameters lost
I don't completely understand the problem. What exactly do you mean by "pagination info is now lost"? Do you mean that the pagination banner is incorrectly displayed, or that the page selection the user previously made is lost, or something else altogether?
Paul -----Original Message----- From: Peg Flick [mailto:[EMAIL PROTECTED] Sent: 2005/20/04 12:22 To: [email protected] Subject: [displaytag-user] Pagination parameters lost
have a struts application that uses displaytag to display the results of a
search. The user types search parameters into a form and then the results
are displayed on another jsp using displaytag. The first time the user
performs a search, displaytag shows the pagination correctly. Then the user
may click on a link in the results table and open a particular record. When
the user closes that record, the search is performed again and the results
displayed in displaytag. However the second time the search is run,
pagination info is now lost.
The first search is performed by retrieving the search criteria from a form.
The second search is performed by retrieving the search criteria from the
session where it is saved in a bean.
So my question is how does displaytag build the pagination info and why
would it be losing it on the second search?
Many thanks for any help!
pflick
Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery
of the message to such person), you may not copy or deliver this message to
anyone. In such case, you should destroy this message, and notify us
immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code. You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail. Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-- Rick Herrick [EMAIL PROTECTED]
I haven't got time for inner peace.
Get out of control, but appear under control. It's not bad to alarm other people, though--it's good for them.--Hunter S. Thompson
------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

