Sign in to Community
Sign in to view all badges
We have created a servlet with extension as JS or html.
@SlingServlet(resourceTypes = "project/components/sample", selectors = "sample",
extensions = "js", methods = "GET")
Resource type is template resource type.
Hence if we access the servlet via /content/project/en.sample.js the servlet responds as expected.
The same works for /content/project/en.sample.html
If we change the extension to JSON the servlet is accessible only when we access /content/project/en/_jcr_content.sample.json
What is the cause of it to look from jcr:content instead of page path( /content/project/en)?
What can be done if we need to access the servlet as /content/project/en.sample.json
Thanks in advance!!
arunpatidar26, Ratna Kumar, smacdonald2008
Kindly help on this..
Thanks arunpatidar26 & joerg,
Thanks for the info.