Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

how does template script is resolved when a certain page is requested

Guptasuresh2004
Level 2
Level 2

how does template script is resolved when a certain page is requested ? 

1 Accepted Solution
vikramca06
Correct answer by
Level 4
Level 4

Say, you have created a page using home template and it uses home component. So for example, the component path is "/apps/components/home" this path will be stored in jcr:content node when you create a page using HOME template.

example sling:resourceType =/apps/components/home property will be added to jcr:content.

When you request a page created using home template, Sling Resource Resolver will get the request and finds the path in repository and gets the the resourceType property. And it finds the component path and renders the html content from jsp file.

Thanks.

Vikram

View solution in original post

0 Replies
vikramca06
Correct answer by
Level 4
Level 4

Say, you have created a page using home template and it uses home component. So for example, the component path is "/apps/components/home" this path will be stored in jcr:content node when you create a page using HOME template.

example sling:resourceType =/apps/components/home property will be added to jcr:content.

When you request a page created using home template, Sling Resource Resolver will get the request and finds the path in repository and gets the the resourceType property. And it finds the component path and renders the html content from jsp file.

Thanks.

Vikram

View solution in original post