2012/12/12 ChadDavis <chadmichaelda...@gmail.com>: >> 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 constants or even a new stack which is simpler than use annotations > 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 . . . But I thin it's rather how you name your action packages: - com.demo.action.rest.RestAction - com.demo.action.NormalAction I'll try to prepare a small demo Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org