You can force "File Download" by adding content-disposition header to the servlet response.
Write a filter that adds the header when the mime type is either application/vnd.ms-excel, text/csv, etc
e.g.
httpServletResponse.addHeader("content-disposition","attachment; filename=filename.ext");
Then chain that filter in your web.xml .
Opening the file in new browser isn't a cross-browser solution.
Carolina Dolan wrote:
Hi there!
Does anyone knnow how to change the layout destination for the export files? The thing is that a I have a table with exports, and when you click on any, except for csv, they open on the same frame, but my page expires almost immediatly and I would need them to start on a new browser... something like target="_blank". I really have no clue on how to do it. If anybody can give me a hand I'll appreciate it!
Thanks a lot!
Carolina
------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg297 _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

