Call a Servlet from a Model class | Community
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.

3 replies

Feike_Visser1
Employee
Sep 17, 2018 11:52 AM UTC

to me via the httpclient, you can fire http-calls.

Translate
smacdonald2008
Level 10
Sep 17, 2018 1:18 PM UTC

As Feike mentions - use Java HTTPClient API as discussed here - Adobe Experience Manager Help | Invoking Adobe Experience Manager Sling Servlets using Apache HTTP APIs

Translate
arunpatidar
New Participant
Sep 17, 2018 10:45 AM UTC

Hi,

Why do you want to call servlet from Sling model, what is your requirement?

Other way around i.e. Sling Model Adaptation is possible Performing Sling Model Adaptation Using Request and Resource Objects

Translate
Arun Patidar