활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Can we invoke a servlet from sling model ?
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
Hi,
From sling mode, its recommended call sling services instead of sling servlet. Could please give more detail on your scenario?. Thanks.
Hi,
From sling mode, its recommended call sling services instead of sling servlet. Could please give more detail on your scenario?. Thanks.
@rgravisankar there is no scenario in which i want to use it, but, I just want to know whether it is possible to access a servlet from sling model or not.
Hi @rgravisankar,
IMHO, as @rgravisankar says, it's not a good practice to call a servlet from a model. Using services makes more sense. To get answer, please read similar thread here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/call-a-servlet-get-request...
Hope that helps!
Regards,
Santosh