15. Apache Sling resource resolution with example

Опубликовано: 04 Ноябрь 2024
на канале: AEM and Devops Tutorial
35,516
232

AEM Tutorial: Apache Sling script resolution : In this video we will see how Apache sling resolves the url.

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. Priority of best match is given below:

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.