Call a Servlet from a Model class

Avatar

Avatar

karthikbhat3624

Avatar

karthikbhat3624

karthikbhat3624

17-09-2018

Hello,

I'm using AEM 6.4,

I want to call a servlet from a Model class,

What is the way to do that?

AEM - Questions

Replies

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883
Arun_Patidar
MVP

17-09-2018

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

Avatar

Avatar

Feike_Visser1

Employee

Avatar

Feike_Visser1

Employee

Feike_Visser1
Employee

17-09-2018

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

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

17-09-2018