RE: Using Struts2 Rest Plugin with deep cascading actions

2015-01-26 Thread Martin Gainty
} else return -1; } }); Thoughts? Martin --------------------- The key to prevent a hacked email account is to change password more than every 5 years.. > From: mgai...@hotmail.

RE: Using Struts2 Rest Plugin with deep cascading actions

2015-01-24 Thread Martin Gainty
> Date: Sat, 24 Jan 2015 15:24:49 +0530 > Subject: Re: Using Struts2 Rest Plugin with deep cascading actions > From: ghotankaru...@gmail.com > To: user@struts.apache.org > > Well after doing some research on designing rest api ***best practices*** I > realized I was

Re: Using Struts2 Rest Plugin with deep cascading actions

2015-01-24 Thread Amol Ghotankar
Well after doing some research on designing rest api ***best practices*** I realized I was doing something wrong. For getting all companies, we must use http://localhost/company For getting all locations of that company we can use http://localhost/company/111/locations For anything else to get

Using Struts2 Rest Plugin with deep cascading actions

2015-01-23 Thread Amol Ghotankar
hi, I was trying out struts2 rest plugin and found it really cool. But was just wondering how will this work with action cascading ? i.e So When using http://localhost/company it goes to companyAction and executes respective mapped methods But how do we organize work when we http://localhost/co