Actuallt it not clear to how I might build a link to an action in a namespace
if...

/namespace/myAction  doesn't work.

What AM I doing wrong?

Cheers,
Paul B.


newton.dave wrote:
> 
> --- paulbrickell <[EMAIL PROTECTED]> wrote:
>> I had seen those, but the problem I was having was that at no point in
>> the
>> docs (afaik) is there an example of a URL to actually target an action in
>> a
>> namespace.
> 
> Noted, although the <s:action...> [1] and <s:url...>[2] tag documentation
> does list the "namespace" attribute. I've added a task to add explicit
> examples.
> 
>> Do not seem to work. However like this...
>> 
>> <s:action name="do" namespace="space"/>
>> 
>> does. 
>> 
>> Annoyingly this...
>> 
>> <s:action name="do.action" namespace="space"/> 
>> 
>> doesn't seem to work either.
> 
> Correct, appending the prefix to <s:action...>, which already assumes
> you're
> referring to an action, wouldn't work.
> 
>> And don't even get me started about using namespaced actions with the a
>> tag. href="/space/do" doesn't work either.
> 
> Well, no, "href" is for a URL, not an action, and the docs explicitly
> build
> the URL with <s:url...>
> 
>> And the final insult when the actions don't resolve properly it fails
>> silently and all I get is an empty browser.:-/
> 
> I haven't seen that; do you have "devMode" turned on? Under what
> circumstances do you get an empty browser?
> 
> Dave
> 
> [1] http://struts.apache.org/2.x/docs/action.html
> [2] http://struts.apache.org/2.x/docs/url.html
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/actions-defined-in-a-package-are-visible-in-other-packages---tp11277458p15230795.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to