You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2007/02/07 03:52:07 UTC

[s2] action tag namespace issue?

Hi,

I have the following on a JSP page:

<a href="<s:url namespace="foo" action="sidebar"/>">
  Sidebar
</a>
<s:action namespace="foo" name="sidebar"
executeResult="true"/>

Namespace "foo" is defined in a file included by
struts.xml.

The link takes me to the page I was seeing if I could
use as a component; s:action throws, saying "There is
no Action mapped for namespace foo and action name
sidebar."

Before I moved "foo" into a separate config file it
lived in the default namespace, looked like:

  <s:action name="foo/sidebar" executeResult="true"/>

and worked.

Life was better back then.

Anybody have any hints?

tia,
Dave



 
____________________________________________________________________________________
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get started!
http://mobile.yahoo.com/services?promote=mail

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