Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
cquser1
cquser1Accepted solution
Level 7
May 15, 2017 5:43 AM UTC

Hi,

From what I am aware of, it is better to use resourceTypes to invoke servlets , than from a specific path. There are multiple articles out there , explaining the same.

@SlingServlet(resourceTypes = { "sample/components/page/homepage" }, methods = { "GET" })

2 replies

cquser1
cquser1Accepted solution
Level 7
May 15, 2017 5:43 AM UTC

Hi,

From what I am aware of, it is better to use resourceTypes to invoke servlets , than from a specific path. There are multiple articles out there , explaining the same.

@SlingServlet(resourceTypes = { "sample/components/page/homepage" }, methods = { "GET" })

Translate
joerghoh
Adobe Employee
Adobe Employee
May 15, 2017 7:04 PM UTC

Hi,

can you please elaborate, how you want to call the servlet? Do you want to create a dialog, which calls the servlet?

Jörg

Translate