You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@gmail.com on 2008/03/03 18:43:13 UTC

More package weirdness

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

Re: More package weirdness

Posted by Dave Newton <ne...@yahoo.com>.
We used to be able to send "cancel" messages, but teh intarwebs are way too
fast for them to have much effect anymore.

--- Nils-Helge Garli Hegvik <ni...@gmail.com> wrote:

> At one company I did consulting, they had an ancient mail system where
> this was possible. The rumours had it that they were betting on
> sending insults to their boss, and then betting on who could wait the
> longest before hitting the "unsend" button :)
> 
> Nils-H
> 
> On Mon, Mar 3, 2008 at 9:43 PM,  <st...@gmail.com> wrote:
> > Why is there no UnSend button?
> >
> >  On Mon, Mar 3, 2008 at 2:40 PM, Nils-Helge Garli Hegvik
> <ni...@gmail.com>
> >  wrote:
> >
> >
> >
> >  > Posted what? :)
> >  >
> >  > On Mon, Mar 3, 2008 at 9:38 PM,  <st...@gmail.com> wrote:
> >  > > Doh!  Can we pretend I didn't post this?
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >  On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <db...@open.ch> wrote:
> >  > >
> >  > >  >
> >  > >  > stanlick@gmail.com wrote:
> >  > >  > > which resolves to be:
> >  > >  > >
> >  > >  > >  <img src="charts/questionChart.action"/>
> >  > >  >
> >  > >  > The namespace is "/charts", but you use "charts".
> >  > >  >
> >  > >  >
> >  > >  >
> ---------------------------------------------------------------------
> >  > >  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >  > >  > For additional commands, e-mail: user-help@struts.apache.org
> >  > >  >
> >  > >  >
> >  > >
> >  > >
> >  > >  --
> >  > >  Scott
> >  > >  stanlick@gmail.com
> >  > >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >  > For additional commands, e-mail: user-help@struts.apache.org
> >  >
> >  >
> >
> >
> >  --
> >  Scott
> >  stanlick@gmail.com
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: More package weirdness

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
At one company I did consulting, they had an ancient mail system where
this was possible. The rumours had it that they were betting on
sending insults to their boss, and then betting on who could wait the
longest before hitting the "unsend" button :)

Nils-H

On Mon, Mar 3, 2008 at 9:43 PM,  <st...@gmail.com> wrote:
> Why is there no UnSend button?
>
>  On Mon, Mar 3, 2008 at 2:40 PM, Nils-Helge Garli Hegvik <ni...@gmail.com>
>  wrote:
>
>
>
>  > Posted what? :)
>  >
>  > On Mon, Mar 3, 2008 at 9:38 PM,  <st...@gmail.com> wrote:
>  > > Doh!  Can we pretend I didn't post this?
>  > >
>  > >
>  > >
>  > >
>  > >  On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <db...@open.ch> wrote:
>  > >
>  > >  >
>  > >  > stanlick@gmail.com wrote:
>  > >  > > which resolves to be:
>  > >  > >
>  > >  > >  <img src="charts/questionChart.action"/>
>  > >  >
>  > >  > The namespace is "/charts", but you use "charts".
>  > >  >
>  > >  >
>  > >  > ---------------------------------------------------------------------
>  > >  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>  > >  > For additional commands, e-mail: user-help@struts.apache.org
>  > >  >
>  > >  >
>  > >
>  > >
>  > >  --
>  > >  Scott
>  > >  stanlick@gmail.com
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>  > For additional commands, e-mail: user-help@struts.apache.org
>  >
>  >
>
>
>  --
>  Scott
>  stanlick@gmail.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: More package weirdness

Posted by st...@gmail.com.
Why is there no UnSend button?

On Mon, Mar 3, 2008 at 2:40 PM, Nils-Helge Garli Hegvik <ni...@gmail.com>
wrote:

> Posted what? :)
>
> On Mon, Mar 3, 2008 at 9:38 PM,  <st...@gmail.com> wrote:
> > Doh!  Can we pretend I didn't post this?
> >
> >
> >
> >
> >  On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <db...@open.ch> wrote:
> >
> >  >
> >  > stanlick@gmail.com wrote:
> >  > > which resolves to be:
> >  > >
> >  > >  <img src="charts/questionChart.action"/>
> >  >
> >  > The namespace is "/charts", but you use "charts".
> >  >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >  > For additional commands, e-mail: user-help@struts.apache.org
> >  >
> >  >
> >
> >
> >  --
> >  Scott
> >  stanlick@gmail.com
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: More package weirdness

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Posted what? :)

On Mon, Mar 3, 2008 at 9:38 PM,  <st...@gmail.com> wrote:
> Doh!  Can we pretend I didn't post this?
>
>
>
>
>  On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <db...@open.ch> wrote:
>
>  >
>  > stanlick@gmail.com wrote:
>  > > which resolves to be:
>  > >
>  > >  <img src="charts/questionChart.action"/>
>  >
>  > The namespace is "/charts", but you use "charts".
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>  > For additional commands, e-mail: user-help@struts.apache.org
>  >
>  >
>
>
>  --
>  Scott
>  stanlick@gmail.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: More package weirdness

Posted by st...@gmail.com.
Thanks Wes!  I had a bald moment.

On Mon, Mar 3, 2008 at 2:38 PM, <st...@gmail.com> wrote:

> Doh!  Can we pretend I didn't post this?
>
>
>
> On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <db...@open.ch> wrote:
>
> >
> > stanlick@gmail.com wrote:
> > > which resolves to be:
> > >
> > >  <img src="charts/questionChart.action"/>
> >
> > The namespace is "/charts", but you use "charts".
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Scott
> stanlick@gmail.com




-- 
Scott
stanlick@gmail.com

Re: More package weirdness

Posted by st...@gmail.com.
Doh!  Can we pretend I didn't post this?


On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <db...@open.ch> wrote:

>
> stanlick@gmail.com wrote:
> > which resolves to be:
> >
> >  <img src="charts/questionChart.action"/>
>
> The namespace is "/charts", but you use "charts".
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: More package weirdness

Posted by Daniel Baldes <db...@open.ch>.
stanlick@gmail.com wrote:
> which resolves to be:
> 
>  <img src="charts/questionChart.action"/>

The namespace is "/charts", but you use "charts".


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: More package weirdness

Posted by Wes Wannemacher <we...@wantii.com>.
The questionChart action exists in a different namespace than the JSP.

Try -
namespace="/charts"

The leading / is significant.

-Wes

On 3/3/08, stanlick@gmail.com <st...@gmail.com> wrote:
> 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
>


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org