Fabrizio Giustina wrote:
If you want your file to be downloaded just add the property export.{export name}.filename ( for example "export.xml.filename= download.xml") and displaytag will set headers for you... no need for filters.
fabrizio
__________________ From: [EMAIL PROTECTED] on behalf of Cliffano Subagio Sent: Mon 26/04/2004 12.23 To: [EMAIL PROTECTED] Subject: Re: [displaytag-user] Exports - problem
This might help:
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/?cpg <http://www.thinkgeek.com/freeshipping/?cpg> 297
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user <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 <http://www.thinkgeek.com/freeshipping/?cpg=12297> _______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user <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

