struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Watson" <michael.f.wat...@gmail.com>
Subject REST plugin URL syntax
Date Sun, 15 Jun 2008 22:22:39 GMT
Hi Folks,

I'm trying to use the REST plugin to implement a service that serves
resources using the following url syntax:

http://www.mydomain.com/rest/book/123   (which works fine)
http://www.mydomain.com/rest/book/123/chapter   (which throws a 500
because my book controller doesn't have a chapter() method)
http://www.mydomain.com/rest/book/123/chapter/1   (which returns 404)

I'd expect the two chapter urls to access the ChapterController
instead of the BookController.

Being able to request resources 'within resources' like this is
crucial to my application. Can anybody tell me how I can configure the
rest plugin to behave like this, or point me at some documentation
that does?

Thanks in advance,

Mike

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


Mime
View raw message