[ 
https://issues.apache.org/jira/browse/SLING-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695063#action_12695063
 ] 

Felix Meschberger commented on SLING-910:
-----------------------------------------

What do you mean by overlaying servlets ? Servlets are handled exactly like 
scripts (internally they are handled using the extension ".servlet") ?

The problem probably is, that a servlet registered with just a resource type 
and extension (but not path) is located below "/apps" (default but 
configurable) unless the resource type is converted to an absolute path.

So if you register the servlet with a "resource type" of 
"/libs/someapp/components/comp1", it will be located below libs and may be 
overlayed in /apps.

> Overlaying of servlets
> ----------------------
>
>                 Key: SLING-910
>                 URL: https://issues.apache.org/jira/browse/SLING-910
>             Project: Sling
>          Issue Type: Improvement
>          Components: Servlets Resolver
>    Affects Versions: Servlets Resolver 2.0.4
>            Reporter: Carsten Ziegeler
>
> While it is possible to overlay scripts (the resource resolver is configured 
> with the search paths), it is not possible to overlay registered servlets. I 
> briefly discussed this with Alex Saar and we think that this is a missing 
> feature in Sling.
> If a servlet is registered for a resource type or extension etc. it should be 
> possible to overlay it with a different version. Maybe by specifying some 
> ordering?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to