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]

Reply via email to