You might try asking this question on the Struts User mailing list.  I
haven't worked with Struts 2 and JFreeChart.  After a little googling,
it looks like Matt Stine has done integration with JSF using AppFuse
1.x.

http://www.jroller.com/page/mstine/Weblog?catname=%2FJava

You might also try searching AppFuse's mailing list archives:
http://appfuse.org/forums

Matt

On 2/23/07, VJ22 <[EMAIL PROTECTED]> wrote:

Hello All,

The problem that I face while integrating AppFuse with JFreeChart

So I have a link which points to viewChart.html  configured from the
menu..When I click on this link I got an action class which populates the
chart (Unit-tests prove that the png file is generated fine)...re-directs it
to viewChart.jsp which has got the following image code

<image src="/viewChart.html"/> -> which I presume will get the chart from
the action

The problem exception happens when it tries to execute the getChart()
method...in the action class....A part of the stack-trace is attached here

java.lang.NullPointerException: No chart found
at org.apache.struts2.dispatcher.ChartResult.execute(ChartResult.java:105)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvo
cation.java:343)

So I assume that the chart object is being invalidated....but why ? I assume
this uses a pull-MVC architecture...any help would be gladly
appreciated.....

struts.xml configuration

<package name="chart" extends="jfreechart-default">
<action name="viewChart"
class="com.pwmliteexp1.pwmLitexp1.web.action.PWMLitePieChartAction"
scope="session">
<result name="success" type="chart">/WEB-INF/pages/viewChart.jsp</result>
</action>
</package>

Thanks in advance

Rgds....Vijay
--
View this message in context: 
http://www.nabble.com/JfreeChart---Struts2---Appfuse-detailed-problem-report-tf3279271s2369.html#a9120198
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to