Today someone wanted to pass in the name of a file located somewhere inside a web application and then stream that file back to them. In this example they wanted to open a pdf file. We only wanted a quick dirty piece of code put in a jsp, which was okay with me being the cowboy coder I am. The first tricky point was they were giving me a URL and wanted back a file. I have tangled with this
Related Articles
This post first appeared on A Funny Java Flavoured Look At The World, please read the originial post: here