On Mon, Aug 22, 2011 at 3:45 PM, Vidar Ramdal <[email protected]> wrote:
> 2011/8/22 Bertrand Delacretaz <[email protected]>:
>> ...This causes their ServletResourceProviders to have the same provider
>> roots, am I correct to assume that this is what causes one of the
>> servlets to mask the other?
>
> Probably. But isn't this how other Sling servlets work - that if more
> than one servlet is registered on the same path (/apps/...) only one
> is invoked?...

You're right...but this makes our OptingServlets much less powerful
than they seem at first sight.

>
> One workaround is to register a delegating OptingServlet, which holds
> references to a set of other servlets, and invokes them in turn....

Yes, in this case (SLING-2192 is the final use case) it's probably
better for the OptingServlet to be mounted on a path as opposed to
resource types, and manage what's happening in there. I'll suggest
that for now.

-Bertrand

Reply via email to