I am just trying to execute a servlet in AEM which should be called when a component (whose sling:resourceType="harsh/components/content/mycomponent" ) is loaded on any page
I tried the same what I mentioned above but its not hitting the servlet.
I am just trying to execute a servlet in AEM which should be called when a component (whose sling:resourceType="harsh/components/content/mycomponent" ) is loaded on any page
I tried the same what I mentioned above but its not hitting the servlet.
Copyright © 2021 Jogjafile Inc.
There is more than one way to map a resourceType to a servlet : it can be a Java class, a JSP page, etc.
The snippet below should work or you: