To check which servlet is responsible for rendering a response using resourceType approach | Community
Skip to main content
Level 2
Aug 3, 2022 6:32 PM UTC
Solved

To check which servlet is responsible for rendering a response using resourceType approach

Hi All

 

I can check  which servlet( http://localhost:4502/system/console/servletresolver) is used using servlet path(

sling.servlet.paths)

.

Is it possible to check which  servlet( http://localhost:4502/system/console/servletresolver) is used using 

resourceTypes(sling.servlet.resourceTypes)

 

Thanks

Dillibabu

.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Aug 3, 2022 7:33 PM UTC

I don't think that it's directly possible. But if you have a resource with that given resourcetype set as "sling:resourcetyp", you can use the servletresolver page you mentioned already.

2 replies

Level 2
Aug 4, 2022 6:37 AM UTC

Hi @dillibabu77 

 

For example your sling:resourceType = {"myproject/components/mycomponent"}  and extension is myjson

then, drag the component in any of your page. get the location of your component as shown below.

/content/myproject/en/home/jcr:content/root/content/content/mycomponent

Then, go to sling servlet resolver part. Select the below line.

/content/myproject/en/home/jcr:content/root/content/content/mycomponent.myjson

 

Let me know if this helps you.

Translate
joerghoh
joerghohAccepted solution
Employee
Aug 3, 2022 7:33 PM UTC

I don't think that it's directly possible. But if you have a resource with that given resourcetype set as "sling:resourcetyp", you can use the servletresolver page you mentioned already.

Translate