struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cree <>
Subject Struts 2 And JFreeChart
Date Wed, 30 Jul 2008 19:14:02 GMT

Hello Everyone,

Got a quick question regarding the streaming of a JFreeChart (or any image)
and how to be able to handle it on a jsp.  I have create a servlet that will
stream out an image to the jsp using a syntax similar to (in my struts.xml):

		<action name="testChart"
			<result name="success" type="chart">

So if I, in my html, created an img tag such that <img
src="testChart.action"/ , it will correctly create the chart.  My problem
arises when I am using it under a dynamic context.  For example, if
initially I submit a form button (theme="ajax" targets="divTarget") then it
would render new data and an initial image.  

If I submit the form again with different user input the data would change
but the image is still the same. I assume it is the same buffered image that
it first loaded, but the action itself will never get reloaded.  The action
would not get executed at all.  

My question is whether there is a way I can manually force the img tag to
invoke the action itself.

Thanks for any input
View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message