• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create a CSV file which can be downloaded

 
srikant raj
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have requirement where a CSV file needs to created and opened up in new window to be downloaded.
I using CSVPrinter to create the file.
Please help me on how to make the portlet show the file in anew window.

Thanks
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could probably just set the mime type to CSV or XLS, and when the client clicks on the link, they get the file. Would probably be even easier if the file was saved to a web server, and a non-portal link was provided to the resource. Portal links always get so messed up.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic