JSP is a very poor choice of technology for streaming binary data. It's a templating language meant for building up textual output. Most JSP compilers (Jasper included) will add their own characters to the output fouling up an binary data.
I've seen people get it to work but they usually have to jump through some hoops that result in difficult to read JSPs.
Thanks Ben! If I would like to create a set of links in my JSP for downloading a set of files say in PDF format. How do I communicate with the Servlet and activate the download? I would like to keep the JSP page active so other links can also be clicked simultaneously.
I dont want to redirect to a resource. Many Thanks Vivek
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How can I output a binary stream from JSP