Re: About Struts Rest Plugin

2008-12-23 Thread Luis Gervaso
no comments? :( On Tue, Dec 23, 2008 at 3:05 AM, Luis Gervaso wrote: > I'm wondering why not the behaviour of the rest plugin is ... > > *For example* > > URL: > http://www.domain.com/myapp/restController/resource1/resource2/resource3/resource4/resource5 > > creates a mapping parent & child > > i

Re: About Struts Rest Plugin

2008-12-22 Thread Luis Gervaso
The reflection impl import java.lang.reflect.Method; import org.apache.struts2.convention.annotation.Action; import org.apache.struts2.convention.annotation.Result; public class RestAction extends HttpBaseAction { @Action(value="/rest/*", result...@result(name=HttpBaseAction.SUCCES

Re: About Struts Rest Plugin

2008-12-22 Thread Luis Gervaso
OK with convention plugin is possible to do code from RestAction @Action(value="/rest/*", result...@result(name=BaseAction.SUCCESS, location="/WEB-INF/content/rest-success.jsp")} ) public final String execute() { System.out.println(); System.out.println("PARENT : "

Re: About Struts Rest Plugin

2008-12-22 Thread Luis Gervaso
I have been trying to figure the solution, I'm using convention plugin and i need to map first every first child of http://www.domain.com/myapp/restController/to a "restaction" so http://www.domain.com/

About Struts Rest Plugin

2008-12-22 Thread Luis Gervaso
I'm wondering why not the behaviour of the rest plugin is ... *For example* URL: http://www.domain.com/myapp/restController/resource1/resource2/resource3/resource4/resource5 creates a mapping parent & child i.e: parentId: resource1/resource2/resource3/resource4 childId: resource5 these can be