I am evaluating the PD4ML for our project.
The dynamically generated JFreeChart image could not be loaded.
The static images are loaded and converted in the PDF file.
The MyChart servlet generates JPENG format image on the fly.
The generated image can be loaded to the browser with
URL
http://localhost:11000/MyWeb/MyChart.
When rendering the HTML page to PDF, the following are the error message:
image not yet in cache:
http://localhost:11000/MyWeb/MyChartnot yet in cache:
http://localhost:11000/MyWeb/MyChartresource
http://localhost:11000/MyWeb/MyChart not found.
image
http://localhost:11000/MyWeb/MyChart not found.
can not load image:
http://localhost:11000/MyWeb/MyChartWe tried to use useServletContext and it did not work either.
<img src="<%=request.getContextPath()%>/MyChart" align="middle" />
Any suggestions are greatly appreciated.
Thanks
Tom