Hi,

On Mon, Sep 14, 2009 at 12:22 PM, Marc Speck <[email protected]> wrote:
> On Mon, Sep 14, 2009 at 11:43 AM, Bertrand Delacretaz
> <[email protected]> wrote:
>> ...using version.12 instead of version=12 should help here, 12
>> then becomes just another selector.
>
> Excellent idea, parsing getSelectorString() should give the number. I have
> also /foo/bar.version.12 for folders but it's fine to look into the
> extension for the number.

You don't even need to parse if you use
SlingHttpServletRequest.getRequestPathInfo().getSelectors().

> ...The OptingServlet sounds interesting. It means that I can register several
> servlets for the same resourceType and implement accept() accordingly?..

Yes, that's the idea, for those (hopefully rare) cases where the other
mechanisms aren't sufficient.

-Bertrand

Reply via email to