Does it work with only zero conf? (no RestfulActionMapper)
musachy On 4/20/07, Kyle Adams <[EMAIL PROTECTED]> wrote:
Martin Gainty wrote: > > Does this help? > Hmm... not really. So the unit test works, but in my app I keep getting the following errors when trying to use namespaces in conjunction with the RestfulActionMapper: There is no Action mapped for action name v1. - [unknown location] This is a very simple webapp with one action. I'm using zero configuration, so I don't even have a struts.xml, just struts.properties: struts.enable.DynamicMethodInvocation=false struts.devMode=true struts.objectFactory=spring #struts.mapper.class= org.apache.struts2.dispatcher.mapper.DefaultActionMapper struts.mapper.class=org.apache.struts2.dispatcher.mapper.RestfulActionMapper And the corresponding Action code: @Result(value = "", type = JSONResult.class) @ParentPackage(value = "json-default") @Namespace(value = "/v1") public class ItemAction { ... } As can be seen in the annotations, I'm using the JSON plugin to serve up the result. Any ideas why it thinks "v1" is my action? Maybe it's the combination of zero conf, a namespace, and RestfulActionMapper? Kyle -- View this message in context: http://www.nabble.com/-S2--RestfulActionMappers-and-Namespace-tf3610682.html#a10110100 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "Hey you! Would you help me to carry the stone?" Pink Floyd