DisplayTag

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

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: 1.0, 1.1
  • Fix Version/s: None
  • Component/s: Configuration
  • Labels:
    None
  • Application server:
    Weblogic 8.1 SP5

Description

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 !
  1. HtmlTableWriter_patch.txt
    18/Oct/06 2:58 AM
    4 kB
    Giorgio Agnelli
  2. HtmlTableWriter.java
    09/Mar/07 8:58 AM
    23 kB
    Indicia
  3. HtmlTableWriter.java
    19/Sep/06 4:45 AM
    22 kB
    Giorgio Agnelli
  4. Pagination_patch.txt
    18/Oct/06 3:01 AM
    3 kB
    Giorgio Agnelli
  5. Pagination.java
    09/Mar/07 8:58 AM
    9 kB
    Indicia
  6. Pagination.java
    19/Sep/06 4:45 AM
    9 kB
    Giorgio Agnelli

Activity

Hide
Giorgio Agnelli added a comment -
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.
Show
Giorgio Agnelli added a comment - 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.
Hide
Indicia added a comment -
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

Show
Indicia added a comment - 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
Hide
Vipul K Dave added a comment -
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].
Show
Vipul K Dave added a comment - 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].
Hide
Vishal Chauhan added a comment -
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.
Show
Vishal Chauhan added a comment - 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.
Hide
Vishal Chauhan added a comment -
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
Show
Vishal Chauhan added a comment - 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
Hide
Mayank Saxena added a comment -
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
Show
Mayank Saxena added a comment - 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
Hide
Sameer added a comment -
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
Show
Sameer added a comment - 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
Hide
Mayank Saxena added a comment -
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

Show
Mayank Saxena added a comment - 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

People

Vote (6)
Watch (8)

Dates

  • Created:
    Updated: