You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2010/04/12 17:12:41 UTC

[jira] Commented: (SLING-585) New functionality to resolve scripts by name

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

Carsten Ziegeler commented on SLING-585:
----------------------------------------

I've added a minor enhancement with revision 933269 : a script might now contain an extension, like "details.html" - in this case a script "details.html.*" is searched
Still if the script name happens to directly identify a script like "details.jsp" or "details.html.jsp" the resolution only succeeds if such a script (with extension jsp) exists.

> New functionality to resolve scripts by name
> --------------------------------------------
>
>                 Key: SLING-585
>                 URL: https://issues.apache.org/jira/browse/SLING-585
>             Project: Sling
>          Issue Type: New Feature
>          Components: API, Servlets
>    Affects Versions: Servlets Resolver 2.0.8, API 2.0.8
>            Reporter: Tobias Bocanegra
>            Assignee: Carsten Ziegeler
>             Fix For: Servlets Resolver 2.0.10, API 2.1.0
>
>         Attachments: SLING585.patch
>
>
> I'm looking for a way to include a jsp script from within another but
> respecting the resource type hierarchy. so for example:
> + myapp
>  + A
>       + A.jsp
>       + content.jsp
>  + B
>       - sling:resourceSuperType = "A"
>       + B.jsp
> and in my B.jsp i want to include the "content.jsp" but respecting the resource type hierarchy.
> suggest to add: <slng:include scriptSelector="content" /> that internally overwrites the request selector during the script selection phase.
> see http://markmail.org/message/la4rvmcdd6whpvhl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira