Opening PDF file using window.open from server
I have a method which generates a PDF file and stores it in /temp folder. I am using tomcat. I want to open the PDF file. I have tried this using window.open method in the JavaScript. But on clicking the hyperlink it says the requested resource was not found. I store the PDF file in /temp folder using following line (of course the file gets generated and saved in the location): inputMap.put(TableProperties.PDF_PATH, "/temp/report.pdf"); Now in a JSP I try the following <tr> <td> <a href="" onclick="javascipt:window.open('/temp /report.pdf');" class="popup">Click to open.</a> </td> </tr> but