Hi,

Check that the image servlet is correctly configured in your application and that you are putting the JasperPrint object on the HTTP session like we do in the sample. As you can see, the images in your report point to that servlet for being delivered.

I hope this helps.
Teodor


Meenakshi Singh wrote:

Hi,

I have removed an earlier version. It did solve the crosstab problem,
however, the images problem remains. It shows an empty image tag in my html
report. when I right-click on the image it shows something like
image?image=img_0_0_3. The url is shown as
http://localhost:9080/StrutsProj/servlets/image?image=img_0_0_3

I have tried putting in images in 2 ways : one as a file object & another as
a string object. However, in both the cases it gives the same problem.
The problem described earlier is also been explained in this mail. Plz check
below.

Regards,
Meenakshi.
PS: Plz reply at your earliest.

-----Original Message-----
From: Teodor Danciu [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 7:25 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; '[email protected]'
Subject: Re: FW: [jasperreports-questions] Images missing in Html Report



Hi,

Your images problem is also linke to having two different JasperReports
versions deployed in the same application.
Corret this first and then try again.
The image.jsp was removed. It is deprecated. Follow the "webapp" sample
that comes with JR 1.1.0.

I hope this helps.
Teodor


Meenakshi Singh wrote:

Please help me in this problem too...plzzzzzzzzz...I m not able to get
any help in this issue from anybody so far..

Thanks & Regards,
Meenakshi.
-----Original Message-----
*From:* Kalpesh Chordia [mailto:[EMAIL PROTECTED]
*Sent:* Monday, November 07, 2005 6:33 PM
*To:* '[EMAIL PROTECTED]'
*Subject:* RE: [jasperreports-questions] Images missing in Html Report

nope.

   -----Original Message-----
   *From:* Meenakshi Singh [mailto:[EMAIL PROTECTED]
   *Sent:* Monday, November 07, 2005 4:52 PM
   *To:* Kalpesh Chordia
   *Subject:* RE: [jasperreports-questions] Images missing in Html Report

   thanks for sending the file. however, even that doesn't help. Any
   other suggestions.

       -----Original Message-----
       *From:* Kalpesh Chordia [mailto:[EMAIL PROTECTED]
       *Sent:* Monday, November 07, 2005 4:31 PM
       *To:* '[EMAIL PROTECTED]'
       *Subject:* RE: [jasperreports-questions] Images missing in
       Html Report

       Attached is from jasperreports-0.6.6...


           -----Original Message-----
           *From:* Meenakshi Singh
           [mailto:[EMAIL PROTECTED]
           *Sent:* Monday, November 07, 2005 4:18 PM
           *To:* Kalpesh Chordia
           *Subject:* RE: [jasperreports-questions] Images missing in
           Html Report

           In my
           \demo\samples\webapp\jsp\............................there
           is compile, error, html,source, viewer jsps but no image.jsp.

               -----Original Message-----
               *From:* Kalpesh Chordia [mailto:[EMAIL PROTECTED]
               *Sent:* Monday, November 07, 2005 4:17 PM
               *To:* '[EMAIL PROTECTED]'
               *Subject:* RE: [jasperreports-questions] Images
               missing in Html Report

               check \demo\samples\webapp\jsp\image.jsp

                   -----Original Message-----
                   *From:* Meenakshi Singh
                   [mailto:[EMAIL PROTECTED]
                   *Sent:* Monday, November 07, 2005 4:08 PM
                   *To:* Kalpesh Chordia
                   *Subject:* RE: [jasperreports-questions] Images
                   missing in Html Report

                   I m sorry, however, I didn't find this image .jsp
                   file in
                   jasperreports-1.0.3\demo\samples

                   where can I get it from?

                       -----Original Message-----
                       *From:* Kalpesh Chordia
                       [mailto:[EMAIL PROTECTED]
                       *Sent:* Monday, November 07, 2005 3:48 PM
                       *To:* '[EMAIL PROTECTED]'
                       *Subject:* RE: [jasperreports-questions]
                       Images missing in Html Report

                       Hi,

                       try image.jsp (available in samples)


exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,
                       "image.jsp?image=");

                       Regards,
                       Kalpesh

                           -----Original Message-----
                           *From:* Meenakshi Singh
                           [mailto:[EMAIL PROTECTED]
                           *Sent:* Monday, November 07, 2005 3:31 PM
                           *To:* Kalpesh Chordia
                           *Subject:* RE: [jasperreports-questions]
                           Images missing in Html Report

                           Hi,

                           First of all Thanks, that you are trying
                           to help me.
                           The path in my .jrxml is as follows. I m
                           showing you th whole image expression.

                           <imageExpression

class="java.lang.String"><![CDATA["C:\\ShareFolder\\Reporting
Tools\\webapp\\images\\jasperreports.gif"></imageExpression>
                           when u say image servlet shud be in the
                           classpath. what do u mean by that? If u
                           mean that the generated class file shud be
                           in the classes then , yes, it is there. I
                           m using wsad for application development.
                           I have the image servlet rightly mapped in
                           my web.xml file. The servlet
                           identification & mapping is as follows:

                           <servlet>

                           <servlet-name>ImageServlet</servlet-name>


<servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-clas
s>
                           </servlet>

                           <servlet-mapping>

                           <servlet-name>ImageServlet</servlet-name>

                           <url-pattern>/image</url-pattern>

                           </servlet-mapping>



                           Thanks & Regards,

                           Meenakshi.



                               -----Original Message-----
                               *From:*

[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
                               Behalf Of *Kalpesh Chordia
                               *Sent:* Monday, November 07, 2005 3:05 PM
                               *To:* '[EMAIL PROTECTED]'
                               *Cc:*

[email protected]
                               *Subject:* RE:
                               [jasperreports-questions] Images
                               missing in Html Report

                               Hello Meekanshi,

                               You need to set complete absolute path
                               of the image file in jrxml design
                               template.

                               Image servlet should be in the
                               classpath and should be accessible
                               from

http://localhost:9080/StrutsProj/servlets/image
                               Code for HTML EXPORTER ....

                               JRHtmlExporter exporter = new
                               JRHtmlExporter();

                               Map imagesMap = new HashMap();
                               session.setAttribute("IMAGES_MAP",
                               imagesMap);


exporter.setParameter(JRExporterParameter.JASPER_PRINT,
                               jasperPrint);

exporter.setParameter(JRHtmlExporterParameter.OUTPUT_WRITER,
                               out);

exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER,"
                               ");

exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,
                               Boolean.FALSE);

exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP,
                               imagesMap);

exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,
                               "image?image=");
                               exporter.exportReport();

                               I hope this helps.

                               Regards,
                               Kalpesh


                               [Meenakshi Singh]  hi all,

                               I have a report to be generated in
                               html. When I put an image in the
                               report,it doesn't show it. It shows as
                               a blank image.  when I check the
                               property of the image by
                               right-clicking on it. it shows..as
                                image?image=img_0.
                               & the image url is

http://localhost:9080/StrutsProj/servlets/image?image=img_0
                               & the code to generate the html report
                               is:

                               JRHtmlExporter exporter = new
                               JRHtmlExporter();


request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_
                               ATTRIBUTE, jasperPrint);

exporter.setParameter(JRHtmlExporterParameter.JASPER_PRINT,
                               jasperPrint);

exporter.setParameter(JRHtmlExporterParameter.OUTPUT_WRITER,
                               out);


exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,
                               "image?image=");
                               Map imagesMap = new HashMap();

request.getSession().setAttribute("IMAGES_MAP",
                               imagesMap);

exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP,
                               imagesMap);


exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,
                               Boolean.FALSE);

exporter.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_
                               ROWS, Boolean.FALSE);

exporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT,
                               "px");

                               exporter.exportReport();

                               Plz let me know if I m making any
                               mistakes or what else shud I do to solve
                               this problem.

                               Thanks & Regards,
                               Meenakshi.











-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jasperreports-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to