Jump to content
We've recently updated our Privacy Statement, available here ×

gstafford

Members
  • Posts

    2
  • Joined

  • Last visited

gstafford's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. So I made the adjustments you recommended - I apologize for taking so long, busy week. When I do this the code in the browser renders as http://xxxxxxx/group/guest/image?image=px which returns a 404. I've adjusted the link several different ways including http://xxxxxx/image?image=px and I get a 404 with all of them. Any other thoughts?
  2. Hello, I've created a portlet using Liferay. I believe I have this set correctly but I can not get the images to display. I'm new to Java so I'm trying to determine the best way to debug this. My code is here: JRHtmlExporter exporter = new JRHtmlExporter(); request.getPortletSession().setAttribute( ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, printObject); exporter.setParameter(JRExporterParameter.JASPER_PRINT, printObject); exporter.setParameter(JRExporterParameter.OUTPUT_STRING_BUFFER, outputBuffer); exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, new HashMap()); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "../servlets/image?image="); exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, java.lang.Boolean.FALSE); exporter.setParameter(JRHtmlExporterParameter.IGNORE_PAGE_MARGINS, java.lang.Boolean.TRUE); exporter.exportReport(); And I have this code in my web.xml ImageServlet net.sf.jasperreports.j2ee.servlets.ImageServlet ImageServlet /servlets/image Everywhere I read makes me believe I have this right, but I am getting nothing in the HTML version. The PDF and XLS versions of the reports all show the graphics and graphs. Any clues on how to debug this or troubleshoot this and track it down? Thanks,George
×
×
  • Create New...