Good Morning Leonard- i see Wildcards in namespaces came from don's todo list from jroller:
where patrick mentioned @Namespace("/foo/{fooId}"), this will call the setFooId() setter in your action (or more accurately, set it on the valuestack) as this is not yet implemented will you want to take a look?.. i think this would be a good feature to work on and i will help you any way I can Please feel free to put this feature request into JIRA https://issues.apache.org/struts/secure/Dashboard.jspa Thanks, Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sun, 19 Oct 2008 00:02:06 +0200 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: RESTful Crud clean url:s, advanced howto anybody? > > Hey! > > I've been looking around quite some time for a solution how to build a > neat REST driven web application. What I basically want to do is > something like this: > > GET /item/user/category/name > > Should map to ItemController which has the properties user (username, > or id per default), category and name. Lets say that username, > category and name are coupled, so that there might be items with the > same and/or category that differs for different users. So, why not > just do /item/id? Well, it looks better. > So, I found the question on Don Browns blog > http://www.jroller.com/mrdon/entry/struts_2_rest_todos mentioning > something about mapping the @Namespace with wildcards and thus getting > the url to map cleanly to the dto properties. He also mentions it not > being well documented... To put it simple, I've tried doing this and I > can't get it to work (I really don't understand the principles so I'm > kinda lost). Actually no matter what I put in the Namespace > annotation, struts won't find my controller class anymore. Can anybody > provide a simple example for this? > > /Leo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Stay organized with simple drag and drop from Windows Live Hotmail. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_102008