Johannes,
this happens cause the RestActionProxyFactory uses the root ("/") as
default namespace and RestActionMapper maps this kind of action along
the empty ("") namespace.if you try to insert the following xml code inside the struts configuration file, it works. <constant name="struts.rest.namespace" value=""/> I think we should open an issue. On 28 April 2011 09:59, Johannes Geppert <[email protected]> wrote: > > Another Question related to the REST Showcase/Plugin. > > If I correct the OrdersController like previous described. > > So i get a valid HTML Result when I call > > http://localhost:8080/struts2-rest-showcase/orders/3 > > But when I try > > http://localhost:8080/struts2-rest-showcase/orders/3.json > > I get also a HTML Result instead of an JSON result which I expected. > > Is there something wrong or am I on a wrong way? > > Johannes > > > > ----- > > -------------- > web: http://www.jgeppert.com > twitter: http://twitter.com/jogep > -- > View this message in context: > http://struts.1045723.n5.nabble.com/Error-in-REST-Showcase-tp4344374p4345959.html > Sent from the Struts - Dev mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Maurizio Cucchiara --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
