Hi Sam,
You should be able to do this with a  ResourceDecorator service to change
the resource type at runtime.

Regards,
Justin
On Jun 27, 2012 2:25 PM, "sam ”" <[email protected]> wrote:

> Hey,
>
> I have a large number of resources with sling:resourceType = old/handler
>
> I don't want to modify their sling:resourceType property.  But, I want to
> have old/handler actually resolve to  /apps/new/handler
>
> For example, given a resource:
> /content/mypage
> whose sling:resourceType = old/hander,
>
> GET /content/mypage.html
> is handled by:
> /apps/old/handler/html.jsp
>
>
> Without modifying /content/mypage,  can I have the same GET request be
> handled by:
> /apps/new/handler/html.jsp   ?
>
> I tried /etc/maps/oldToNew
> sling:internalRedirect = /apps/new/handler$1
> sling:match = .*/apps/old/handler(.*)
>
> GET /apps/old/handler
> does redirect to /apps/new/handler.
> But, script resolution doesn't seem to use /etc/maps.
>

Reply via email to