1 Reply Latest reply on Aug 23, 2008 10:36 PM by Samuel Mendenhall

    Seam and CSV Downloads

    Greg Zoller Newbie

      Hello,


      I've got a data structure in memory that I want to make available to my webapp's users if they click on a Download CSV link.  How can I accomplish this?  I've tried unsuccessfully making an xhtml file with meta tags setting content-type to text/csv, so there must be more to it than that--perhaps poking the request directly?  Not sure.


      So far everything I've tried just displays csv output in the browser, which isn't what I need.


      Ideally since I have the data in memory I'd prefer to create the csv on the fly and stream it to them but I can dump it to a file on disk first if needed.


      Thanks for any ideas!
      Greg