On Mon, Sep 14, 2009 at 1:41 PM, Bertrand Delacretaz
<[email protected]> wrote:
> 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.

Yeah, do what Bertrand says - I didn't think about the OptingServlet
when replying to your questions. Seems it can do pretty much what you
want.


-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070

Reply via email to