Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Downloading a file onclick of a node from Tree2

 
rajani kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
i have a tree2 which renders a root folder and its contents(sub-folders & files), a hardcoded path from my local disk.now i have a command link for a file node and i need to download[open/save dialog]on click of that. please help me with a solution.
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rajani..

I'd imagine you would do it the same way you would if you were using servlets only. ie: get the servletOutputStream from the Http response, and write the file to that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic