Embedding a complete (and local) html page


I am using jasper reports to generate some reports in HTML format.

These reports sometimes have images (charts, logos, etc…), so when jasper exports it, it creates a subdirectory containing all these images.

Supposing i am exporting this report to a temp folder called “/temp”, which is local and not reachable using a URL, what is the best way (if there is one) to embed and show the complete web page, including the images?

PS: I don´t want to export to PDF, as i’m not sure all clientes will have a PDF reader installed.



Well, using a custom servlet it is possible (you will have to map request uri to local path, and basically do the same thing any http server already does), but it will be so much simpler to just put the reports in a HTTP accessible folder.