Sign in to Community
Sign in to view all badges
I'm using AEM 6.3
My servlet config is
Constants.SERVICE_DESCRIPTION + "=Example Servlet",
"sling.servlet.methods=" + HttpConstants.METHOD_GET,
"sling.servlet.resourceTypes="+ "my-project/components/general/my-component ",
"sling.servlet.extensions=" + "html",
"sling.servlet.selectors=" + "simple"
As you can see I'm not using a page as a resourceType so I'm a little confused. Can anyone tell me what will be the url to hit on browser so it runs my doGet Method. And yes My servlet works as I have tested it by giving path.
Drop my-component in any page and hit that path along with extension and selector with which you registered Servlet. For example
selector and extension must be same as you provided in
Create a page and add ur component on that page, try to access that page with selectors and extension.