Jump to content
Changes to the Jaspersoft community edition download ×

jasper reports with charts in webapp


2004 IR Help

Recommended Posts

By: Thomas Ludwig Kast - tomkast

jasper reports with charts in webapp

2005-11-14 16:09

hiho,

 

works great. but... ...have to hit reload on browser (firefox) going from one chart-report to another chart-report because the chart image gets cached in the browser (chart image name does not change)...

 

...any ideas for adding something unique to the image name? being a web-browser issue, this only applies to JRHtmlExporter.

 

danka shein,

 

tom

 

 

 

 

By: Thomas Ludwig Kast - tomkast

RE: jasper reports with charts in webapp

2005-12-15 10:35

i am using jasper 1.0.3, looking at release notes for 1.1.0 and 1.1.1, i don't see any fixes for this. is there a plan to deal with this in the future?

 

 

 

 

By: kgruskin - kgruskin

RE: jasper reports with charts in webapp

2005-12-20 12:00

I'm having the same problem with my images in the sense they are being cached. I tried adding no cache meta info to the header but it did not solve the problem. It would be nice to append a system time or identifier to the image name to force image reloading for the chart. Has anyone found a soution for this?

 

The following did not work.

 

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

 

 

 

 

 

By: Latie - hirodes

RE: jasper reports with charts in webapp

2006-01-13 02:00

I came to a simple solution - needs change in JRHtmlExporter.java add

 

imagePath += "?time="+System.currentTimeMillis();

 

at line 1422 of jasperreports-1.1.1, just after the ImagePath has been initialized before the "else" for loadPxImage()

 

This will change the image URL every time the report gets requested. The browser will not be able to find the URL in the cache and load a fresh image.

 

Remember that static images will also be refreshed now!

 

 

 

 

 

By: Thomas Ludwig Kast - tomkast

RE: jasper reports with charts in webapp

2006-01-13 10:12

tis good. fyi, i am using:

exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?date=" + d.toString() + "&image=");

 

tom

 

 

 

 

By: Bonkers - darthbonkers

RE: jasper reports with charts in webapp

2005-12-21 07:20

hi,

 

sorry i have no solution, but i look for some code how to show charts in a webapp(servlet). can you help?

 

thanks a lot

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...