Struts convention plugin/ action annotations

2009-09-25 Thread struts-restful
I am trying to override the restful URI using the action annotation as described in the convention plugin doc http://struts.apache.org/2.x/docs/convention-plugin.html#conventionplugin-apply...@actionand@Actionsattheclasslevel According to the docs I can use the following annotation on my method

Re: Struts convention plugin/ action annotations

2009-09-25 Thread struts-restful
: > > Make sure you have slashes in action names enabled - > > > > -Wes > > On Fri, Sep 25, 2009 at 10:22 AM, struts-restful wrote: >> >> I am trying to override the restful URI using the action annotation as >> described in the convention plugin d

Re: Struts convention plugin/ action annotations

2009-09-25 Thread struts-restful
Further to the above I changed my action annotation url to just show @Action("abc") above my method test. The result of this is that now it gets to my controller class but from the debug my default method has been set to show(). When the annotation is evaluated in the DefaultActionProxy class i

restful URL issue

2009-09-28 Thread struts-restful
Does anyone know how to get the restful web service to call a method different to show or edit. For example I have the following url http://localhost:8080/testeg/my/example/example-count/1/count.xml I want this to call the method count in my ExampleCountController. The URl goes to the action a

Re: restful URL issue

2009-09-29 Thread struts-restful
chy > > On Mon, Sep 28, 2009 at 5:57 AM, Alex Siman > wrote: >> >> Look here: >> http://www.nabble.com/parameters-in-url-td25602877.html >> >> Restful plugin is not so good as it supposed to be. >> >> struts-restful wrote: >>> >&

Re: restful URL issue

2009-09-29 Thread struts-restful
/{id}. When i remove the namespace annotation and type in the url my action is then correctly mapped with /person/name. So is this a bug or have i missed something in my configuration? thanks in advance struts-restful wrote: > > Thanks for the help and your reply. > > i imp

Re: restful URL issue

2009-09-29 Thread struts-restful
http://cwiki.apache.org/confluence/pages/editpage.action?pageId=44247 > > all 3 approaches are there with examples. > musachy > > On Tue, Sep 29, 2009 at 8:20 AM, struts-restful wrote: >> >> Ok after some further investigating the problem appears to be when the

Re: restful URL issue

2009-09-29 Thread struts-restful
Also I know that the default parameter is id but ideally i am trying to create a url as follows /person/name/{id}/{anotherId}/test-example struts-restful wrote: > > I amended my URL to be as follows then using the namespace pattern matcher > > /person/name/{id}/test-example &

Re: restful URL issue

2009-09-30 Thread struts-restful
Musachy Barroso wrote: > > are you putting that in the @Namespace annotation? It will not work on > the @Action annotation. > > musachy > > On Tue, Sep 29, 2009 at 8:49 AM, struts-restful wrote: >> >> Also I know that the default parameter is id but ideall

Re: restful URL issue

2009-09-30 Thread struts-restful
test.MyTestController. when I tried the URL /test/-1/my-test.xml my namespace was set to "" and my actionname was = "test" and methodname was populated with "my-test". This is if I had a namespace annotation as follows @Namespace("test/{id}"} public class MyTestController T

Re: restful URL issue

2009-09-30 Thread struts-restful
I also tried this with a / in the namespace so @Namespace("test/{id}"} and @Namespace("/test/{id}"} give a namespace with "". struts-restful wrote: > > One more additional piece of information is that the namespaceMatcher does > contain the compiled

Re: restful URL issue

2009-09-30 Thread struts-restful
Is a possible reason that it may not be working that I am also using the convention plugin?? struts-restful wrote: > > I also tried this with a / in the namespace so > > @Namespace("test/{id}"} and > @Namespace("/test/{id}"} give a namespace with

Parameters Interceptor

2009-10-16 Thread struts-restful
I am using the struts-restful default interceptor stack which uses the static params interceptor and the paramters interceptor. The result of using both interceptors is that it is calling setId twice. However if I remove the static params interceptor it does not call setId at all and if I remove

Testing Struts Restful Web Services

2009-10-22 Thread struts-restful
is message in context: http://www.nabble.com/Testing-Struts-Restful-Web-Services-tp26008963p26008963.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apac