Hi All,
As per the documentation[0], we can create/register sling servlet in 4 ways.
1) Using Sling Annotation (@Slingservlet).
2) The @Properties
and @Property
annotations
3)Registration by Path
4) Registration by Resource Type
Could you please let me know what is the difference between those? Advantage with each one and under what circumstances we have to use each one.
[0]--https://sling.apache.org/documentation/the-sling-engine/servlets.html
Thanks
k Chaianya
Solved! Go to Solution.
Hi
Please have a look at this community article for your help:-
Link:- https://hashimkhan.in/aem-adobecq5-code-templates/servlets/
//
There is reason why resourceType is much more preferential and suggested for writing SlingServlets. Below are the few reasons I could think of:
I hope this will be helpful to you.
Thanks and Regards
Kautuk Sahni
Hi
Please have a look at this community article for your help:-
Link:- https://hashimkhan.in/aem-adobecq5-code-templates/servlets/
//
There is reason why resourceType is much more preferential and suggested for writing SlingServlets. Below are the few reasons I could think of:
I hope this will be helpful to you.
Thanks and Regards
Kautuk Sahni
Views
Likes
Replies