AEM Tutorial: Apache Sling script resolution : In this video we will see how Apache sling resolves the url which has selector in it.
Fist, it decomposes the url in different part and looks for the path and finds that path in jcr. If exists, it take the property value of sling:resourceType. Using this value which has page rendering script, it look for it in apps folder. If exists, then it applies the rules for finding the best match for the script. We are using url http://localhost:4502/content/we-train.blue.html. Here, blue is a selector. So, apache gives the priority to blue.html and renders it.
1) selector + extension
2) selector
3) extension
4) default script
5) method
If no match found then it look in libs and again not found then it throws 404 page not found. THis is how sling resolves the script in AEM
share, support, like and subscribe
Subscribe : https://www.youtube.com/channel/UC5Lc...
LinkedIn : / pankaj-ch. .
Facebook : / pankajchhatri
Twitter : / pankajchhatri
Google plus : https://plus.google.com/u/0/+pankajch...
About : AEM tutorial is a youtube channel which helps you to learn AEM concepts theoretically as well as practically.