You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Bruce Green <br...@comcast.net> on 2010/10/30 19:58:50 UTC

Using sling.include()

Given the JSP example below what is the equivalent sling.include() statement
in ESP?  

 

<%@page session="false"%>

<%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%>

 

<sling:defineObjects/>

 

<html>

        <body>

                <sling:include resourceType="some/resource/type" />

 

                <h1><%= currentNode.toString() %></h1>

        </body>

</html>


Re: Using sling.include()

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

Am Samstag, den 30.10.2010, 12:58 -0500 schrieb Bruce Green: 
> Given the JSP example below what is the equivalent sling.include() statement
> in ESP? 

This would by

   sling.include(request.resource, "some/resource/type");

Regards
Felix

> 
> 
> 
> 
> <%@page session="false"%>
> 
> <%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%>
> 
>  
> 
> <sling:defineObjects/>
> 
>  
> 
> <html>
> 
>         <body>
> 
>                 <sling:include resourceType="some/resource/type" />
> 
>  
> 
>                 <h1><%= currentNode.toString() %></h1>
> 
>         </body>
> 
> </html>
>