posted 12 years ago
Hello everyone,
I'm working on an app that has to write a pdf to the ServletOutputStream so it opens in the browser,
i'm fairly new to spring so I basicly have no clue on how to start on this.
I've written a controller method and set the response header to application/pdf but all it shows is a blank html page not even application/pdf in the browser's title bar.
Below you'll find the code I've written, do I have to register a bean to use the HttpServletResponse in the context file or what am I missing?