Re: [S2.1] url action mapping problem (restful)

2007-10-28 Thread Don Brown
On 10/28/07, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Hi Don, > > Thanks for the quick updates. The update to xwork seems fine as it > supports namespaces like "/animals/*" via the wildcard handling in > findActionConfigInNamespace(String namespace, String name). Ah, right. I'll fix that. > A

Re: [S2.1] url action mapping problem (restful)

2007-10-28 Thread Jeromy Evans
Hi Don, Thanks for the quick updates. The update to xwork seems fine as it supports namespaces like "/animals/*" via the wildcard handling in findActionConfigInNamespace(String namespace, String name). Unfortunately in the case of the rest plugin, the RestActionMapper first calculates the

Re: [S2.1] url action mapping problem (restful)

2007-10-27 Thread Don Brown
Doh, thanks. Added. Don On 10/28/07, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Hi Don, > I can see your updates to xwork and the rest plugin - look great - but > the new classes NamespaceMatcher and NamespaceMatch used by xwork's > DefaultConfiguration seem to be missing from svn. Can you pleas

Re: [S2.1] url action mapping problem (restful)

2007-10-27 Thread Jeromy Evans
Hi Don, I can see your updates to xwork and the rest plugin - look great - but the new classes NamespaceMatcher and NamespaceMatch used by xwork's DefaultConfiguration seem to be missing from svn. Can you please take a look? https://svn.opensymphony.com/svn/xwork/trunk/src/java/com/opensymph

Re: [S2.1] url action mapping problem (restful)

2007-10-26 Thread Don Brown
The code has been checked into XWork, but since the upcoming Struts 2.1.0 release will depend on XWork 2.1.0 and not XWork 2.1.1 (which trunk will be when it is released next), the feature won't be available until Struts 2.1.1. Basically how it works is you define your namespace to be: @Namespace(

Re: [S2.1] url action mapping problem (restful)

2007-10-25 Thread Jeromy Evans
Don Brown wrote: You are correct, #3 isn't possible right now with the rest plugin, however, it is certainly on the near-term roadmap. What is needed is the ability to define wildcards in the namespace, also known as url templates. For example, you could do something like @Namespace("/states/{s

Re: [S2.1] url action mapping problem (restful)

2007-10-25 Thread Don Brown
You are correct, #3 isn't possible right now with the rest plugin, however, it is certainly on the near-term roadmap. What is needed is the ability to define wildcards in the namespace, also known as url templates. For example, you could do something like @Namespace("/states/{state}") on your Cit

[S2.1] url action mapping problem (restful)

2007-10-25 Thread Jeromy Evans
Hi, I'm trying to setup action mappings for URLs similar to the examples below: 1. GET: /states=> action = StatesController, method=index() 2. GET: /states/ca => action = StatesController, method=show(), params=[id=ca] 3a. GET: /states/ca/cities/sacramento => action = StatesController,