For the Parameter IMAGES_URI, I am setting the path of image.jsp .
exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "../../../view/platform/report/image.jsp?image=");
Instead of using Image.jsp, if I use ImageServlet.class, will it help to fix the image displaying issue ?
How do I use ImageServlet.class in my below jsp code ?
-----Original Message-----
From: Kalpesh Chordia []
Sent: Friday, February 18, 2005 10:29 PM
To: 'Giulio Toffoli';
Subject: RE: [jasperreports-questions] Images not displaying in websphere

Hello Giulio,
Thanks for your quick response. Could you please explain me the problem and its solution in more details as this is very urgent and I can not deliver it without fix.
Thanks in advance.
-----Original Message-----
From: Giulio Toffoli []
Sent: Friday, February 18, 2005 10:17 PM
Subject: Re: [jasperreports-questions] Images not displaying in websphere

Can be a ClassLoader problem. JasperReports uses a custom ClassLoader do load resources.


Kalpesh Chordia wrote:


I am running JasperReports 0.5.2 in RedHat Linux + Ibm WebSphere environment. In my report, I have included images in page header and footer sections.

When I export jrprint file to HTML, I am not able to see all the images on all the generated pages. They appear properly on first page only and from second page, images do not appear. The behavior is very inconsistent. I need to right click on the image and select show picture option to get the image and that to twice for each disappeared image.

The same report with all the images on all the pages work fine under Windows 2000 + Weblogic environment.

Is JasperReports not 100% compatible with IBM WEB SPHERE ? OR do I need any thing extra ?

My HTML Exporter code written in JSP is as follows.
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_STRING_BUFFER, sbuf);
exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER," ");
exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
Map imagesMap = new HashMap();
request.getSession().setAttribute("IMAGES_MAP", imagesMap);
exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, imagesMap);
exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "../../../view/platform/report/image.jsp?image=");