struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanl...@gmail.com
Subject More package weirdness
Date Mon, 03 Mar 2008 17:43:13 GMT
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
stanlick@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message