sling resource resolver clarification

Avatar

Avatar

manikanthar1295

Avatar

manikanthar1295

manikanthar1295

16-08-2019

Hi Team,

I have created one component called page component and in that there are 4 html files  and 1 jsp file listed below

page.html

first.html

second.html

third.html

JSP page is

testing.jsp

In content i have created one nt:unstructured file called hello-world like below

1814522_pastedImage_0.png

Now if i hit URL like

http://localhost:4502/content/hello-world.html --->page.html is loading

if i hit like  http://localhost:4502/content/hello-world.first.html-->first.html page is loading

sling resolver are like

protocol=http

host=localhost

port=4502

content-path=/content/hello-world

selector=first

extension=html

Like that if i hike http://localhost:4502/content/hello-world.testing.jsp​   i am getting like

1814532_pastedImage_3.png

protocol=http

host=localhost

port=4502

content-path=/content/hello-world

selector=testing

extension=jsp

Sling resolved preference will be given like

1.selector+extension

2.selector

3 extension  etc

Now the Question is  Why url is not resolved for jsp page.

Kindly help for sling resolver for jsp page

Regards

Manikantha R

9844254734

View Entire Topic

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

857

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

857
Arun_Patidar
MVP

19-08-2019

Hi,

The script engines looks for below scripts if you access resource with selector

seletctor.html or

selector.jsp or

selector.esp or

selector.jst

In your case testing.jsp found.