Info | ||
---|---|---|
| ||
This page is | copied currently a copy from this mailing list | and JIRA Issuethread. See also SLING-387 and the unit test http://markmail.org/message/tksvk4xfwapdpkwosvn.apache.org/repos/asf/incubator/sling/trunk/servlets/resolver/src/test/java/org/apache/sling/servlets/resolver/helper/ScriptSelectionTest.java. |
This page explains how Sling maps URLs to a script or and servlet. First of all Sling looks up the resource identified by the URL - typically a path inside the JCR repository, which is annotated by the sling:resourceType
property which defines the resource type of that resource. Using this resource type (which is kind of a relative path, eg. "myblog/comment"), scripts or servlets are looked up.
...