Hi Dale. 
Thank you for your answer. NamespaceBasedActionMapper sounds good, certainly
better than to have all actions mapped by REST plugin. But it isn't exactly
what I am looking for. I was hoping that one could have Rest controllers and
classic actions (mapped by convention plugin) living side by side in one
namespace. 
I guess that using NamespaceBasedActionMapper would involve compromises in
URL-map of web application and this could lead to confusing and inconsistent
urls.
Some actions in most webapps are CRUD-oriented and some are not. A was
thinking like that: there is this REST plugin, so why don't use it for CRUD
actions and get Restful WS API for free?   

So what I actually need is more fine grained ActionMapper that could decide
whether to use REST action mapping or somethiong else in one namespace. I'm
not afraid to write one but I would need someone with deeper insight in
struts2 to tell me that this is actually possible to do.   

Regards,
Rado  


DNewfield wrote:
> 
> Radoslav Krivak wrote:
>> could someone advise me how to configure REST plugin so that only some
>> actions will be "processed" by it. I do not want all actions to use REST
>> url
>> scheme and url->method mapping.
> 
> I built something I call NamespaceBasedActionMapper that allows you to 
> specify different action mappers for different namespaces.  If this is 
> what you're looking for, let me know.
> 
> http://www.nabble.com/REST-vs-Original-td14956768.html#a14972374
> 
> -Dale
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/REST-Plugin-only-for-some-actions-tp22611467p22618667.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to