Re: REST Mappers

2012-12-17 Thread Lukasz Lenart
2012/12/17 Antonios Gkogkakis : > That's great Lukasz. Thanks! > Just spotted a typo though, nampespaces :D Done, thanks again! -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@stru

Re: REST Mappers

2012-12-17 Thread Antonios Gkogkakis
That's great Lukasz. Thanks! Just spotted a typo though, nampespaces :D Regards, Antonios On 17 December 2012 14:53, Lukasz Lenart wrote: > Done, thanks Antonios! > > https://cwiki.apache.org/confluence/display/WW/RestfulActionMapper > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.len

Re: REST Mappers

2012-12-17 Thread Lukasz Lenart
Done, thanks Antonios! https://cwiki.apache.org/confluence/display/WW/RestfulActionMapper Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2012/12/10 Antonios Gkogkakis : >> What would be the best way to share an example? Send it here on the list? >>You can register an issue and ad

Re: REST Mappers

2012-12-14 Thread Lukasz Lenart
2012/12/13 ChadDavis : > Perhaps I misunderstand the purpose of struts.rest.namespace. I had > thought it's purpose would be to cause the RestActionMapper to reject > handling of all requests not in struts.rest.namespace. Is this incorrect? Hm... I think you're right, instead doing that on the

Re: REST Mappers

2012-12-13 Thread ChadDavis
> So, it seems like the RestActionMapper needs to be injected with the > > struts.rest.namespace so it can be knowledgeable aobut this when building > > the actionmapping namespace . . . > > But I thin it's rather how you name your action packages: > - com.demo.action.rest.RestAction > - com.demo.a

Re: REST Mappers

2012-12-13 Thread ChadDavis
> So, I can't get this to work when using with convention/rest plugin > > combination. I did NOT try to use it with a xml/rest plugin combo. > > You can combine convention/xml/rest together - in struts.xml you can > define constants or even a new stack which is simpler than use > annotations > Ye

Re: REST Mappers

2012-12-12 Thread Lukasz Lenart
2012/12/12 ChadDavis : >> support for namespace prefix - struts.rest.namespace > > > So, I can't get this to work when using with convention/rest plugin > combination. I did NOT try to use it with a xml/rest plugin combo. You can combine convention/xml/rest together - in struts.xml you can define

Re: REST Mappers

2012-12-12 Thread ChadDavis
Did you try to use the new REST plugin without Convention plugin ? > REST plugin can work with XML based configuration as well and it has > support for namespace prefix - struts.rest.namespace So, I can't get this to work when using with convention/rest plugin combination. I did NOT try to use i

Re: REST Mappers

2012-12-10 Thread Antonios Gkogkakis
> What would be the best way to share an example? Send it here on the list? >You can register an issue and add text and example there or send it here Since this is my first contribution I'll post it here :). I based my example on https://cwiki.apache.org/confluence/display/WW/RestfulActionMapper

Re: REST Mappers

2012-12-10 Thread Lukasz Lenart
2012/12/10 ChadDavis : > I'm planning to do that soon. I'm keen to start making code contributions > too. I actually wrote a book about S2 in 2008, but then I didn't work with > S2 professionally for several years. But I have recently rejoined the fold > with a new job and am happy to be working

Re: REST Mappers

2012-12-10 Thread Antonios Gkogkakis
On 10 December 2012 16:31, ChadDavis wrote: > On Sun, Dec 9, 2012 at 6:09 AM, Antonios Gkogkakis > wrote: > > > another issue, was that every time we had a non REST action > > being called. the RestActionMapper, would find it in the configuration > and > > would treat it as a rest action with n

Re: REST Mappers

2012-12-10 Thread ChadDavis
On Mon, Dec 10, 2012 at 9:30 AM, Lukasz Lenart wrote: > > I'm adding the convention/rest plugin combo to our existing app right > now. > > It's not well documented, but I think it's going to work out. I'll > write > > up a blog entry and post it to the list when I'm finished with my spikes. > >

Re: REST Mappers

2012-12-10 Thread ChadDavis
On Sun, Dec 9, 2012 at 6:09 AM, Antonios Gkogkakis wrote: > another issue, was that every time we had a non REST action > being called. the RestActionMapper, would find it in the configuration and > would treat it as a rest action with no method, so it would try to guess > the method and fail be

Re: REST Mappers

2012-12-10 Thread Lukasz Lenart
2012/12/10 ChadDavis : > I'm adding the convention/rest plugin combo to our existing app right now. > It's not well documented, but I think it's going to work out. I'll write > up a blog entry and post it to the list when I'm finished with my spikes. You're more than welcome to fill ICLA and con

Re: REST Mappers

2012-12-10 Thread ChadDavis
On Sun, Dec 9, 2012 at 3:24 AM, Antonios Gkogkakis wrote: > Had we wanted to use the more modern REST plugin, we would have to refactor > the app to use the convention plugin. I'm not sure whether > that's a straightforward task, but back then we encountered a few issues > and gave up. > I'm ad

Re: REST Mappers

2012-12-10 Thread Lukasz Lenart
2012/12/10 Antonios Gkogkakis : > No problem Lukasz. > What would be the best way to share an example? Send it here on the list? You can register an issue and add text and example there or send it here > I created an account in the wiki, but I don't think I'm allowed to edit the > page you send m

Re: REST Mappers

2012-12-10 Thread Antonios Gkogkakis
No problem Lukasz. What would be the best way to share an example? Send it here on the list? I created an account in the wiki, but I don't think I'm allowed to edit the page you send me Regards, Antonios On 9 December 2012 17:57, Lukasz Lenart wrote: > 2012/12/9 Antonios Gkogkakis : > > I've ju

Re: REST Mappers

2012-12-09 Thread Lukasz Lenart
2012/12/9 Antonios Gkogkakis : > I've just had a quick look at the REST plugin in the trunk, I'm assuming > that's the new version of the plugin you are referring to, > and I remembered that apart from the convention plugin issues we had, > another issue, was that every time we had a non REST acti

Re: REST Mappers

2012-12-09 Thread Antonios Gkogkakis
No Lukasz, I'm afraid I haven't I've just had a quick look at the REST plugin in the trunk, I'm assuming that's the new version of the plugin you are referring to, and I remembered that apart from the convention plugin issues we had, another issue, was that every time we had a non REST action bei

Re: REST Mappers

2012-12-09 Thread Lukasz Lenart
2012/12/9 Antonios Gkogkakis : > It is indeed an attempt to support RESTful urls. > When we wanted to add REST support to our existing struts2 app(using xml > config and not the convention plugin), we found that using the > Restful2ActionMapper with the PrefixBasedActionMapper which chooses > the a

Re: REST Mappers

2012-12-09 Thread Antonios Gkogkakis
It is indeed an attempt to support RESTful urls. When we wanted to add REST support to our existing struts2 app(using xml config and not the convention plugin), we found that using the Restful2ActionMapper with the PrefixBasedActionMapper which chooses the appropriate ActionMapper based on a namesp

Re: REST Mappers

2012-12-08 Thread Lukasz Lenart
2012/12/5 ChadDavis : > What are the org.apache.struts2.dispatcher.mapper.RestufulActionMapper and > Restful2ActionMapper for? It looks like a first attempt to add REST support to WebWork/Struts 2. I think they should be removed as current REST plugin is much better. I'll mark them @Deprecated if