pdf « MVC Controller « Spring Q&A





1. Sending back pdf and tiff using Spring controller    forum.springsource.org

I have access to an api which gives me a inputstream to tiff/pdf files. If i user servlets i just need use response.getOutputSteam and write the data into it after setting ...

2. anotated controller to display a pdf file    forum.springsource.org

anotated controller to display a pdf file I have the followinf code: Code: @RequestMapping(value = "/pdf_file.htm", method = RequestMethod.GET) public void pdf_file(HttpServletResponse response) { System.out.println(">>" + this.getClass().getName() + ":pdf_file()"); try { ...