Struts2 Fan wrote:
Hi all,
http://struts.apache.org/2.x/docs/jfreechart-plugin.html
In this page it just gives an example to make the action return a chart. My
question is how can I display it on a part of a jsp?
Any help will be appreciated...
As with any resource you want to display in a web page (images, applets,
etc.), you do so by reference. On the page in which you want to include
the chart, use an 'img' tag to reference the chart producing action. For
example, if your chart producing action is named 'chart', your JSP might
include something like:
<s:url id='chartUrl' action='chart'>
<s:param name='chartId'>${chartType}</s:param>
</s:url>
<img src='${chartUrl}' />
So, you have one action which serves the page and another that serves
the chart. Or one action, with two methods or whatever.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]