Dear List memebers, I tried it, but it was given error.............
Error is in struts 2.0.x as bug the work around is mentioned on the following link https://issues.apache.org/jira/browse/WW-2324?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel And IT WORKS......... On Mon, Jun 21, 2010 at 11:55 PM, Celinio Fernandes <cel...@yahoo.com>wrote: > Hi, > I ran into the same problem a while ago. > > The JasperReports plugin works with a servlet to > display the images. > The attribute to add is imageServletUrl : > > > <param > name="imageServletUrl">/servlets/image?image=</param> > > Of > course you need to declare that servlet in your web.xml : > > <servlet> > > <servlet-name>ImageServlet</servlet-name> > > > <servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-class> > > </servlet> > <servlet-mapping> > > <servlet-name>ImageServlet</servlet-name> > > <url-pattern>/servlets/image</url-pattern> > > </servlet-mapping> > > HTH > Best regards, > Celinio > Fernandes > > --- On Mon, 6/21/10, Amol Ghotankar <ghotankaru...@gmail.com> wrote: > > From: Amol Ghotankar <ghotankaru...@gmail.com> > Subject: Re: Jasper Report Problem in HTML format > To: "Struts Users Mailing List" <user@struts.apache.org> > Date: Monday, June 21, 2010, 9:25 AM > > Yes it could be path issue, but the images point to the images folder in > web > content. > > No images are generated in my case as I have searched them everywhere. > > Where are the images generally kept when using jasper reports in html > format > using struts2. > > On Mon, Jun 21, 2010 at 5:55 PM, Rahul Mohan <rahul.mo...@tcs.com> wrote: > > > Looks like its a path issue. Please see if the image tags in the > generated > > HTML point to the proper URL for images. > > > > > > > > > > From: > > Amol Ghotankar <ghotankaru...@gmail.com> > > To: > > Struts Users Mailing List <user@struts.apache.org> > > Date: > > 21-06-2010 17:21 > > Subject: > > Re: Jasper Report Problem in HTML format > > > > > > > > Dear List members, > > > > My problem is still not resolved. > > > > I am not able to show jasper reports in html format in struts 2. > > > > The images that are generated in html format are missing. > > > > Please help me on it. > > > > Regards, > > > > Amol ghotankar > > > > On Sun, Jun 20, 2010 at 11:56 PM, Amol Ghotankar > > <ghotankaru...@gmail.com>wrote: > > > > > As per my knowleadge they are not getting generated properly, as i > tried > > to > > > search them on all possible folders, evern via searching in my > computer. > > > > > > Has anyone tried jasper reports in html format before? > > > > > > PDF & XLS working perfectly fine and images are generated and displayed > > > there with no problem. > > > > > > Please let me know if its problem in struts or jasper or my project, so > > > that my efforts will get some direction. > > > > > > > > > > > > On Sun, Jun 20, 2010 at 6:59 PM, Brian Thompson > > <elephant...@gmail.com>wrote: > > > > > >> Are the images saved as temp files and accessed as files through > > tomcat, > > >> or > > >> are they generated on access by something like /getImage.action? > > >> > > >> On Jun 20, 2010 6:12 AM, "Amol Ghotankar" <ghotankaru...@gmail.com> > > >> wrote: > > >> > > >> Dear List members, > > >> > > >> When I try to see the HTML page it shows path of images as > > >> src="/images/px" > > >> > > >> But in web content images folder no such images are created, nor they > > are > > >> created any where on my disk. > > >> > > >> Does this means that their is a bug in Struts 2 that it does not > > properly > > >> create images required for report for HTML format. > > >> > > >> Other formats like pdf, xls work perfectly fine. > > >> > > >> Generally where are these images stored??? In temp dir or in tomcat > > server > > >> or in project dir or somewhere else on disk. Can we change it. > > >> > > >> I am trying it very hard but not able to get any solution as images > are > > >> created dynamically. > > >> > > >> > > >> > > >> On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar > > <ghotankaru...@gmail.com > > >> >wrote: > > >> > > >> > > >> > Dear List members, > > >> > > > >> > I have successfully embedded jasper reports with struts 2, thanks to > > the > > >> >... > > >> > > > > > > > > > > > > =====-----=====-----===== > > Notice: The information contained in this e-mail > > message and/or attachments to it may contain > > confidential or privileged information. If you are > > not the intended recipient, any dissemination, use, > > review, distribution, printing or copying of the > > information contained in this e-mail message > > and/or attachments to it are strictly prohibited. If > > you have received this communication in error, > > please notify us by reply e-mail or telephone and > > immediately and permanently delete the message > > and any attachments. Thank you > > > > > > > > > > >