I was looking over how sling will call the script on the basis of url. In the case of selector it seems work fine but if i use no selector, its confusing for me to understand:
I have a page /content/AEMProject/English/test.html which has resourceType AEMProject/components/page/basepage resouce basepage has 4 script files : basepage.html.jsp , basepage.jsp , html.jsp, GET.jsp . I red the Sling Best Match concept. So i have two strange cases.
1) My basepage.html.jsp is executing, as i consider it as best match. In case i delete this file html.jsp execute but i consider basepage.jsp as the 2nd best case.
2) In case i delete basepage.html.jsp , basepage.jsp , html.jsp files my GET.jsp doesn't render.
I am considering here basepage as selector or IS is not.
Thanks
I am considering here basepage as selector or IS is not.. Also when your GET.jsp is not executing what else is getting executed in its place? - rakhi4110