Hi Sam,

Why does it have to be handled by /apps/foo/bar2?  In your /apps/foo/bar,
create a jsp called edit.jsp and you're done because that one will be called
based on your "edit" selector when you call /content/page.edit.html  What is
the reasoning behind another component handling your edits?



Sarwar


On Thu, Mar 3, 2011 at 7:17 PM, sam lee <[email protected]> wrote:

> Hey,
>
> I have a node:
>
> /content/page
>
> whose sling:resourceType = "/apps/foo/bar"
>
> So,  GET /content/page.html  will be handled by /apps/foo/bar/html.jsp
>
> I cannot modify sling:resourceType of /content/page.
>
> However, I would like GET /content/page.edit.html  to be handled by
> /apps/foo/bar2/edit.html.jsp
>
> Is this possible? I cannot modify /apps/foo/bar  and /content/page. But I
> want .edit.html to be handled by /apps/foo/bar2.
>
> Should I add a servlet with:
> sling.servlet.resourceTypes = sling/servlet/default
> sling.servlet.selectors = edit
>
> to capture all .edit.html  and somehow "call" /apps/foo/bar2/edit.html.jsp
> ?  (maybe a redirect?)
>

Reply via email to