It was happen to me also, then I just used annotation to replace struts
configuration and
I used config-browser/index.action to list available  action and the detail.

if my app is http://localhost:8080/kopkar
then i will check to
http://localhost:8080/kopkar/config-browser/index.action


but you need to add lib struts2-config-browser-plugin in your webb appp lib
(WEB-INF/lib)
http://struts.apache.org/2.x/struts2-plugins/struts2-config-browser-plugin/


Mujoko


On 7/23/08, Lyallex <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm having a problem getting my head around namespaces
>
> I have the folowing link
>
> <a href="<s:url action="passThroughToNewEstablishment"/>">Create New
> Establishment</a>
>
> in the main struts.xml I have the following
>
> <struts>
>
> <package name="dafault" extends="struts-default">
>
>     <action name="passThroughToNewEstablishment">
>         <result
> name="success">/establishment/getEstablishmentDetails.jsp</result>
>     </action>
>
>     ...
>
> </struts>
>
> This works fine
>
> Now I want to move the establishment stuff out of the main struts.xml file
>
> So I create a new struts.xml file called estab.xml
> and place it in the relevant class directory on the server
>
> <struts>
>
>     <package name="estab" extends="struts-default">
>
>         <action name="passThroughToNewEstablishment">
>             <result
> name="success">/establishment/getEstablishmentDetails.jsp</result>
>         </action>
>
>
> </struts>
>
> the main struts.xml file now looks like this
>
> <struts>
>
>
>    <!-- include the estab namespace -->
>    <include file="foo/bar/estab/estab.xml"/>
>
>    ...
>
> </struts>
>
> The following still works works
>
> <a href="<s:url action="passThroughToNewEstablishment"/>">Create New
> Establishment</a>
>
> so does this
>
> <a href="<s:url
> action="some/random/path/passThroughToNewEstablishment"/>">Create New
> Establishment</a>
> (absolutely no idea why this works)
>
> so now I want to restrict access to anything in the 'estab' namespace
> so I think the new url should look like this
>
> <a href="<s:url action="estab/passThroughToNewEstablishment"/>">Create
> New Establishment</a>
>
> This works of course (see above, no idea at all).
>
> Now I want to restrict access so in estab.xml I do this
>
> <struts>
>
>     <package name="estab" namespace="/estab" extends="struts-default">
>
>         <action name="passThroughToNewEstablishment">
>             <result
> name="success">/establishment/getEstablishmentDetails.jsp</result>
>         </action>
>
>
> </struts>
>
> all I ever get is the message
> 'There is no Action mapped for action name passThroughToNewEstablishment.'
>
> If I take the namespace bit out it all works, if I put it back in it fails.
> I've tried all sorts of things to try and get it to work
> , I think it may have something to do with the way the <s:url tag does
> it's thing
> (the original path is still appended to the url for example)
>
> Any pointers much appreciated.
>
> TIA
>
> lyallex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Mujoko

Reply via email to