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 it with a xml/rest plugin combo.  After
looking through the code, it doesn't appear that it would work, but I'm not
that familiar with the code.  As Antonios says, the RestActionMapper
doesn't see this setting at all.  The RestActionProxyFactory DOES see it
though.  The problem is that by the time the proxy factory get's the
ActionMapping, the mapper has already decided that the namespace is empty
string.  So, the rest proxy thinks that the request isn't for a REST
action, because it's not in struts.rest.namespace, and the whole request
get's handed over to the default proxy factory.

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 . . .

Reply via email to