hi , I want to use sling:include tag's addSelector propert.
The scenario is as follows, I have two resources /a/b and /a/c . the script for /a/b is html.jsp and script for /a/c was renamed to selector.jsp. Now in the html.jsp when I use <sling:include resourceType="a/c" addSelector="selector" /> and type "http://localhost:8080/b.html" it displays details about the node b without even rendering the current node. when I type <addSelector="selector" /> and type " http://localhost:8080/b.html" it an error like this shows up with the rendering of current node. It says, "no renderer for extention="ontent" (500) The requested URL /b.html resulted in an error in org.apache.sling.servlets.get.DefaultGetServlet." in both cases the script selector.jsp is not used for rendering. here are the two scripts. /a/b/html.jsp <[EMAIL PROTECTED] session="false"%> <[EMAIL PROTECTED] prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%> <sling:defineObjects/> <html> <body> <div id="header"> <sling:include addSelectors="selector" /> </div> <h1><%= currentNode.getProperty("title").getValue().getString() %></h1> </body> </html> /a/c/selector.jsp <[EMAIL PROTECTED] prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0 "%><sling:defineObjects/> <div> <p style="color:blue;"> <img src="/images/sling.jpg" align="right"/> <%= currentNode.getProperty("headline").getValue().getString() %> </p> </div> regards, janandih.