On Mon, Sep 14, 2009 at 11:43 AM, Bertrand Delacretaz <[email protected] > wrote:
> On Mon, Sep 14, 2009 at 10:46 AM, Marc Speck <[email protected]> wrote: > > ...3. A RegExp for selectors or extensions. For example, I currently have > the > > version in the path like /foo/bar.version=12.xml, so @scr.property > > name="sling.servlet.selectors" value="version=.+"... > > Note that 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. The OptingServlet sounds interesting. It means that I can register several servlets for the same resourceType and implement accept() accordingly? Marc
