royalcyber
asked on
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.
ASKER
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Anyway what is the URL on this link that is problematic, can you copy paste it so we can analyze it?
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);
aResponse.setContentType(m
OutputStream out = aResponse.getOutputStream(
aResponse.setContentLength
aResponse.setHeader("Pragm
aResponse.setDateHeader("E
aResponse.setHeader("Cache
//WRITE DATA
out.write(buf,0,bytes);
....
out.flush();