Hi everyone, Q: How can I determine the script used to render a certain resource type?
Details: I'm trying to do this in a JSP page (for my sling-explorer project) so that the user can see what script renders a certain type of content (a resourceType that is). This is what I tried so far: 1. Obtain a reference to a ServletResolver service using ServletResolver servletResolver = sling.getService(ServletResolver.class); 2. Ask the service to "resolve" the resource type: Servlet servlet = servletResolver.resolveServlet(resourceResolver,"myapp/mytype") but this returns null. Everything is in place: the script is there, the resource renders correctly (the script is in /apps/myapp/mytype/mytype.jsp), it's just that the resolver returns null when asked to resolve a script. Is there another way (perhaps... the right way :) ) to do this? Thank you and have a good day. ___________________________ Daniel Platon
