Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
copied and JIRA Issue
Info
titleMore information

This page is

currently a copy from this mailing list

thread. See also SLING-387 and the unit test http://markmailsvn.apache.org/message/tksvk4xfwapdpkwo/repos/asf/incubator/sling/trunk/servlets/resolver/src/test/java/org/apache/sling/servlets/resolver/helper/ScriptSelectionTest.javaImage Modified.

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.

...