Issue Details (XML | Word | Printable)

Key: DISPL-377
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Reporter: Sathyavijayan Vittal
Votes: 6
Watchers: 8
Operations

If you were logged in you would be able to see more operations.
DisplayTag

Sort and Pagination links(url) generated is too long (>2083 chars). Links not working in IE.

Created: 20/Jul/06 03:26 AM   Updated: 18/Dec/09 11:32 AM
Return to search
Component/s: Configuration
Affects Version/s: 1.0, 1.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Java Source File HtmlTableWriter.java (23 kB)
2. Java Source File HtmlTableWriter.java (22 kB)
3. Text File HtmlTableWriter_patch.txt (4 kB)
4. Java Source File Pagination.java (9 kB)
5. Java Source File Pagination.java (9 kB)
6. Text File Pagination_patch.txt (3 kB)


Application server: Weblogic 8.1 SP5


 Description  « Hide
The URLs (links) generated for sort and pagination are too long in certain cases. (When we have more fields to track). These cross the max limit defined by IE which is 2083 chars. So, the URLs do not work.

This has to be fixed as this seems to be a basic boundary condition that has not been taken care of !

Giorgio Agnelli added a comment - 19/Sep/06 04:45 AM
I solved the problem by converting a normal href to a form and added a javascript call to the submit method.

I solved problem for sorting/paging/export

Look in the code:
HtmlTableWriter.java: method "writeTableHeader" and "writeExportLinks"
Pagination.java: method "getFormattedBanner"

I hope this is usefull for your problem.

Bye bye.

Giorgio Agnelli made changes - 19/Sep/06 04:45 AM
Field Original Value New Value
Attachment HtmlTableWriter.java [ 22938 ]
Attachment Pagination.java [ 22937 ]
Giorgio Agnelli made changes - 18/Oct/06 02:58 AM
Attachment HtmlTableWriter_patch.txt [ 23502 ]
Giorgio Agnelli made changes - 18/Oct/06 03:01 AM
Attachment Pagination_patch.txt [ 23503 ]
Indicia added a comment - 09/Mar/07 08:58 AM
I run into the same problem with IE.

Giorgio, thank you for solving the problem.

I made some modifications to your code in order to:
- passing through multiple querystring parameters with same name,
- making javascript submit links suitetable for Firefox and
- URL decoding querystring parameters values in the forms

Indicia


Indicia made changes - 09/Mar/07 08:58 AM
Attachment HtmlTableWriter.java [ 26196 ]
Attachment Pagination.java [ 26197 ]
Vipul K Dave added a comment - 10/Jun/08 10:31 AM
Hi Giorgio Agnelli, Indicia.

Through the solution by [Giorgio Agnelli], the url problem is resolved.
But It has opened a new issue. It is creating a form within my form somehow.
Can you please send a solution, which just removes duplicate URL parameter and the parameter without values?
[A solution which do not created form].

Vishal Chauhan added a comment - 15/Dec/09 10:18 AM
Hi,

I am facing the same issue with IE restricting the URL Length to 2083. Is there a already built displaytag.Jar file with this fix in place? If so, please share across. I am facing issues in setting the environment to build it with the fix.

Vishal Chauhan added a comment - 15/Dec/09 10:23 AM
Hi Giorgio,

I am facing the same issue with IE restricting the URL Length to 2083. Is there a already built displaytag.Jar file with this fix in place? If so, please share across. I am facing issues in setting the environment to build it with the fix.

Thanks,
Vishal

Mayank Saxena added a comment - 15/Dec/09 10:49 AM
Hi Guyz,

   I am also looking for the solution desperately. I am using export excel/pdf functionality and URL exceeds 2083 chars in most of the cases. It fails when i try to export in Firefox shows error 'Request entity too large' and IE doesn't have the link working (2083 chars limitation).
    Does displaytag 1.2 jar have this issue fixed. Any other work around?

Thanks
Mayank

Sameer added a comment - 17/Dec/09 12:23 AM
Hi Mayank.Did you find any solution for this problem.
I am also facing the same.Pls let me know if you have any workaround.
Thanks
Sameer

Mayank Saxena added a comment - 18/Dec/09 11:32 AM
I have used the attached patch file (Htmltablewriter.java) and created displaytag-1.1.jar and deployed on sunone app server. I am able to resolve the issue with this patch. No more long url while pdf/excel exporting and not getting "Request entity too large" error.

Thanks
Mayank