struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <jeromy.ev...@blueskyminds.com.au>
Subject Re: [S2.1] url action mapping problem (restful)
Date Sun, 28 Oct 2007 00:31:57 GMT
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/opensymphony/xwork2/config/impl/
R1663

svn info:
https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-rest-plugin
Revision: 589249
URL: https://svn.opensymphony.com/svn/xwork/trunk
Revision: 1663
URL: https://svn.apache.org/repos/asf/struts/struts2/trunk
Revision: 589251

Thanks,
 Jeromy Evans

Don Brown wrote:
> 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("/states/{state}"), then define a setState() method on your
> controller to get the 'state' value.
>
> Don
>
> On 10/26/07, Jeromy Evans <jeromy.evans@blueskyminds.com.au> wrote:
>   
>> 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/{state}") on your CitiesController class.
>>>
>>>       
>> Thanks Don. That'll be perfect!  I'll keep an eye on the xwork trunk and
>> dev list.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message