How to prompt a streamed file for downloading in Java / Tomcat

Posted by Clem on Stack Overflow See other posts from Stack Overflow or by Clem
Published on 2010-05-12T08:11:13Z Indexed on 2010/05/20 14:10 UTC
Read the original article Hit count: 276

Filed under:
|
|

Hello,

I'm creating a java web application runing on a Tomcat server.

One of the functions fill in a StringBuffer variable with data.

At the end, I would like to propose the user to download the generated content packaged in a text file. This without having to store the file on the server.

I've been searching for a code snippet but couldn't find anything corresponding ...

I hope I've been clear enough on my problem.

Thanks in advance,

© Stack Overflow or respective owner

Related posts about java

Related posts about tomcat