struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <>
Subject Re: Some Idea On REST mapping
Date Wed, 03 Sep 2008 00:37:10 GMT
Ryan Wong wrote:
> But there is still a question.
> With the namespace we have to place the parameter like prefix...
> eg. to call postsController
> index() method.
> It seems it cannot handle urls like
> The follow one is more easily to accept by user, isn't it?

Correct, it's just for the namespace, so it can't handle URLs like your 
parameter handling does.

I agree your URL looks better. 

My preference is the following:

The first page of the first post

the first page of posts:

the index of posts:

And, although this isn't a good example, using the 

The first page of the first post:

in which case a PageController is being invoked (useful for genuine 
parent-child relationships between resources).

But it really doesn't matter that much.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message