How can this JSP code

 <s:url id="chartUrl" action="questionChart" namespace="*charts*"/>
 <img src="<s:property value="%{chartUrl}" />"/>

which resolves to be:

 <img src="charts/questionChart.action"/>


be generating this exception?
11:28:45,271 ERROR org.apache.struts2.dispatcher.Dispatcher.serviceAction():512
- Could not find action or result
There is no Action mapped for namespace */quiz* and action name
questionChart. - [unknown location]

Here is my def for the chart:


<package name="charts" namespace="/charts" extends=
"starter,jfreechart-default">

<result-types>

<result-type name="chart" class="org.apache.struts2.dispatcher.ChartResult"
default="true"/>

</result-types>

<action name="questionChart" class="acme.action.QuizGrader">

<result>

<param name="width">400</param>

<param name="height">300</param>

</result>

</action>

</package>


-- 
Scott
[EMAIL PROTECTED]

Reply via email to