Hi,

On Tue, Jul 2, 2013 at 5:39 AM, Bertrand Delacretaz
<bdelacre...@apache.org>wrote:

> Hi,
>
> On Thu, Jun 27, 2013 at 5:46 PM, Justin Edelson
> <jus...@justinedelson.com> wrote:
> >...I think there is a significant need to be able to "select"
> > amongst multiple POST servlets for a particular resource. Thus, I propose
> > that we allow for the selector to be passed via a request parameter....
>
> Why is that better than using a selector?
>

Chiefly because the resource is the same yet there are two different paths.
So rather than using the path to purely describe a noun, you are also
embedding a verb into it.

For example, consider a polling resource. You want to be able to vote and
clear results. The poll is the noun and "vote" and "clear" are the verbs.

With a path-based selector, you have:
POST /content/site/poll.vote.html
item=one

POST /content/site/poll.clear.html

With a parameter-based selector:
POST /content/site/poll.html
:selector=vote&item=one

POST /conetnt/site/poll.clear.html
:selector=clear

Regards,
Justin


>
> -Bertrand (not contesting, trying to understand ;-)
>

Reply via email to