Having problem in exporting data while using "Display Tag" from sourceforge.net

Hi I am trying to use display tag in my JSP file. The tag shows the data perfectly fine. But when I click on the export options to export the data in excel or pdf it opens the appropriate application but no data is transferred. I have also included the filter in my web.xml file but still it is not working.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

specify the header field Content-Length.
Sometimes Internet Explorer makes the query to your URL twice, take any actions if you depend on that.

Your servlet that returns data should look like:

ServletContext ctx = this.getServletContext();
mime = ctx.getMimeType(fileName);
OutputStream out = aResponse.getOutputStream();
aResponse.setContentLength( (int)lengthOfFile );
aResponse.setHeader("Pragma", "no-cache"); //HTTP 1.0
aResponse.setDateHeader("Expires", 1); //prevents caching at the proxy server
aResponse.setHeader("Cache-Control", "max-age=0");


royalcyberAuthor Commented:
I am actually using pre-made "display tag" from sourceforge.net.
I insatalled the .jar files and .tld files as needed and am just passing an arraylist to these tag in JSP and they display
the daata in a table and give options such as sorting or export data to excel, xml etc.

I am not sure how to check teh code for this tag

Please help
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:

I think you might have checke this link already any way just try out that page buffer tag in th solution it may solve your problem and also make sure that all your configurations are correct.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Anyway what is the URL on this link that is problematic, can you copy paste it so we can analyze it?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.