Hi, Here's the solution that I found. You can get the parameters that displaytag is attaching to the request object like this: String query_string = request.getQueryString(); This string will have all kinds of stuff besides displaytag tags, so you want to isolate only stuff that you need (which starts with "d-", hopefully your jsp variables don't start with that). I used tokenizer like this: StringTokenizer tk = new StringTokenizer(query_string, "&"); while (tk.hasMoreTokens()) { String token = tk.nextToken(); if (token.startsWith("d-")) { if (new_query_string.length() == 0) new_query_string = "?" + token; else new_query_string = new_query_string + "&" + token; } }
Pass the new string back to jsp. Inside jsp, instead of doing plain submit() you can have a javascript function which appends the query string to the form action. Something like: document.forms[0].action = document.forms[0].action + new_query_string; document.forms[0].submit(); Hope this helps. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of snanapr Sent: Friday, July 07, 2006 3:11 PM To: displaytag-user@lists.sourceforge.net Subject: Re: [displaytag-user] Problem retaining sorting order and page number HI - I am also having similar issue in retaining specific page in displaytag after doing submit. Has any one else come across and solved the issue? Pls help.. -- View this message in context: http://www.nabble.com/Problem-retaining-sorting-order-and-page-number-tf 1817634.html#a5223005 Sent from the DisplayTag - General forum at Nabble.com. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user