I am using Struts 1.2.7 & Tiles on Tomcat 5.5.9. I need to be able to export to CSV, Excel & PDF formats.
When I try to download it to CSV format, it prompts me to Open or Save and the filename is showing as XXXXXX.do . If I try to open it, it does not work since it does not recognize the file type (.do - this is my Struts action class). If I save it explicitly as csv and then open it, it works fine. Same thing with PDF.
The Excel export works fine and so does the XML.
How can I fix this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using Struts 1.2.7 & Tiles on Tomcat 5.5.9. I need to be able to export to CSV, Excel & PDF formats.
When I try to download it to CSV format, it prompts me to Open or Save and the filename is showing as XXXXXX.do . If I try to open it, it does not work since it does not recognize the file type (.do - this is my Struts action class). If I save it explicitly as csv and then open it, it works fine. Same thing with PDF.
The Excel export works fine and so does the XML.
How can I fix this?
Forgot to mention that I am using displaytag 1.0.