Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in downloading file from server to client  RSS feed

 
priya pratheepp
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends

In my program when i try to download file from the server to client i am getting the file which is the output of currently running jsp file pls help

below is the code


Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand your question.

Also, JSPs aren't well suited for file downloads.
They're meant for marking up text.
You'll have better luck if you do this from a servlet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!