Re: REST URLs

2010-07-26 Thread Kevin Jones
I've heard back from Jeromy Evans. He's happy for me to post the code. Unfortunately it may not be until the weekend as I'm on the road at the moment, Kevin On 26 July 2010 14:11, Kevin Jones wrote: > There is a cached copy of the site here > > http://webcache.google

Re: REST URLs

2010-07-26 Thread Kevin Jones
he replies I'll put it somewhere where it can be downloaded, Kevin On 26 July 2010 12:36, Arun Kumar Boppudi wrote: > http://www.blueskyminds.com.au/url-hierarchy/ is not available. > -- AB > > > On Mon, Jul 26, 2010 at 4:30 PM, Kevin Jones wrote: > >> Yes it is. &

Re: REST URLs

2010-07-26 Thread Kevin Jones
http://www.blueskyminds.com.au/url-hierarchy/ but the link is broken at the moment. I've used the code as an example and it all seems to work. Ping me if you can't get the code and I can send it to you (it's licensed under the Apache license so it's OK to share), Kevin Jones On 26 Ju

Re: Adding annotations to the interceptor stack

2010-07-26 Thread Kevin Jones
Thanks Lukasz, I found this out the hard way :) Kevin On 26 July 2010 09:31, Lukasz Lenart wrote: > defaultStack [1] already has validation interceptor defined, you > shouldn't duplicate it. > The best way is to create your own stack and play with interceptors - > not to refer to other stack. >

Adding annotations to the interceptor stack

2010-07-22 Thread Kevin Jones
I'm using the REST plugin and am trying to setup annotations. My package looks like this: This works in that I ge

Re: Strang issue with NamedVariablePatternMatcher

2010-07-22 Thread Kevin Jones
ostsController implements ModelDriven Notice that the parameter is blogsId not blogId - it appears that the name matters, Kevin On 22 July 2010 12:31, Kevin Jones wrote: > I'm using Struts2, REST with the Convention plugin and the > NamedVariablePatternMatcher along with some cod

Strang issue with NamedVariablePatternMatcher

2010-07-22 Thread Kevin Jones
I'm using Struts2, REST with the Convention plugin and the NamedVariablePatternMatcher along with some code that Jeromy Evans provided for a "HierarchicalRestActionMapper" and all my controllers are model driven. This nearly all works! Let's say I'm building a blog so I want URLs like /blogs/1/pos

Re: REST and Non-REST actions

2010-07-20 Thread Kevin Jones
Thanks All. I'll give it a go, Kevin On 20 July 2010 16:37, Johannes Geppert wrote: > > you can get current release from here. > > http://people.apache.org/builds/struts/2.2.1/ > > Johannes > > > Kevin Jones-10 wrote: >> >> Thanks Lukasz, >> &

Re: REST and Non-REST actions

2010-07-20 Thread Kevin Jones
Thanks Lukasz, where can I grab the 2.2.1 bits? - there doesn't seem to be a link on the site. Do I need to get the sources and build it? Kevin On 20 July 2010 11:06, Lukasz Lenart wrote: > 2010/7/20 Kevin Jones : >> Simple question (I think), >> >> when using the R

REST and Non-REST actions

2010-07-20 Thread Kevin Jones
Simple question (I think), when using the REST plugin, can I have two 'controllers' one that expects REST urls/verbs and one that is a standard Struts2 Action, i.e. where I can map incoming URLs to action methods? Hope that makes sense, -- Kevin

Re: Struts, Convention plugin and REST plugin

2010-07-16 Thread Kevin Jones
s( { > �...@result(name="newpost", location="newpost"), > �...@result(name="posts", location="posts") > }) > public class PostsController implements Preparable, >                ModelDriven> > { > public String editNew() > { >        r

Struts, Convention plugin and REST plugin

2010-07-15 Thread Kevin Jones
I'm having a problem using Struts/Convention/REST together/ I have a class that looks like this public class PostsController implements Preparable, ModelDriven> { } with two 'action' methods @Action(result...@result(name="newpost", location="newpost")}) public String editNew() {