I'm using Struts jasper reports plugin so I believe the 
IS_USING_IMAGES_TO_ALIGN is set by default.  The img tags used for aligning 
output do show up and display perfectly in Firefox, just in IE they are 
displayed as img placeholders.  So I'm guessing that is due to ImageServlet not 
being there which I've now added to web.xml.

There is however a recently reported bug 
(https://issues.apache.org/struts/browse/WW-2324) where the imageServletUrl 
parameter set in the Struts2 result for jasper throws an exception and doesn't 
get set.  I've tried the workaround mentioned but unsuccessfully.  I'll report 
back if I solve it but would appreciate any advise if someone else has managed 
to get it working in Struts2.

On a somewhat related topic, switching to PDF output has its own problems with 
IE.  I had to remove the gzip filter or IE displays a blank page instead of the 
PDF report.  Apparently with the gzip filter in place the content type isn't 
being recognized by IE (Firefox works perfectly again).

Ron



----- Original Message ----
From: nothingman <[EMAIL PROTECTED]>
To: users@appfuse.dev.java.net
Sent: Saturday, November 17, 2007 11:56:56 PM
Subject: Re: [appfuse-user] Jasper Report generated HTML displaying image 
placeholders in IE6 and IE7



Hi Ron,
I think you're using the following option in your code:

JRHtmlExporter exporter = new JRHtmlExporter();
exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,
Boolean.TRUE);

If you use IS_USING_IMAGES_TO_ALIGN then Jasper try to align the layout
 of
your report using "invisible" image dinamically generated. In order to
 get
it works you need to map the imageservlet provided by jasper inside
 your
web.xml:
Servlet name  : ImageServlet
Servlet class : net.sf.jasperreports.j2ee.servlets.ImageServlet
URL           : /image

-- 
Nothingman
-- 
View this message in context:
 
http://www.nabble.com/Jasper-Report-generated-HTML-displaying-image-placeholders-in-IE6-and-IE7-tf4828789s2369.html#a13817049
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to