[
https://issues.apache.org/jira/browse/SLING-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695080#action_12695080
]
Felix Meschberger edited comment on SLING-910 at 4/2/09 11:20 AM:
------------------------------------------------------------------
No, you still register it with a resource type, but this may be an absolute
path.
For example, if you register as resourceType="app/components/c1", it will be
located at "/apps/app/components/c1". If you register it as
"/libs/app/components/c1" it will be registered exactly there and support the
actual resource type "app/component/c1".
The drawback of this is, that you are taking assumptions about the path.
if you want to configure the prefix (using /libs instead of /apps for example,
but this is global !), you may configure this in the servlet resolver (IIRC)
was (Author: fmeschbe):
No, you still register it with a resource type, but this may be an absolute
path.
For example, if you register as resourceType="app/components/c1", it will be
located at "/apps/app/components/c1". If you register it as
"/libs/app/components/c1" it will be registered exactly there and support the
actual resource type "app/component/c1".
The drawback of this is, that you are taking assumptions about the path.
if you want to configure the prefix (using /libs instead of /apps for example,
but this is global !), you may configure this in the resource resolver (IIRC)
> 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.