Search code examples
javadwr

Want to open PDF file from DWR request


I want to open a pdf file from DWR call. I am using DWR 2.0 Please guide me.


Solution

  • I am not able to understand that what do you mean by open pdf file. AS per my understanding of your question, you can use DWR to get the pdf file from server to client side. Then you have to display it with any client side techniques.

    In DWR website you can find dwr.war file. It contains a example for downloading pdf files. You have put that file in any servlet container's web-apps folder. Then you can access the tutorial through http://localhost:8080/dwr/.