Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

downloading file in JSF  RSS feed

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My requirement is that i need to download csv file .I tried by setting response header with all available ContentTypes but this is not working its directly showing the content of file in the browser it self.
can any one help?
Thanks in Advance
Regards
Venkat
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Did you try setting the response in the following way


Thanks,
Ketan
 
Venkat Kanneganti
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
ThankYou for your Response.already i tried those ways,but i didnot get what i want,apart from them can you give me any suggestions.
Thanks in Advance
Regards
Venkat.
 
Ketan Jambhekar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you paste your code here ?
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!