활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi All,
I have a simple sling servlet under /bin/myservlet. when I am trying to hit the same from my JSP using AJAX call in console it is saying 404Not Found.
I am using AEM 6.3 version. Please help on the same.
Thanks,
Sobhan
조회 수
답글
좋아요 수
Is your bundle in Active State?
조회 수
답글
좋아요 수
Yes bundle is in active state and also servlet is getting resolved in the servlet resolver in ConfigMgr.
Only when I am trying to execute is in JSP via ajax call it is throwing 404 not found.
It is an AEM Forms JEE instance in JBoss.
조회 수
답글
좋아요 수
Show your AJAX syntax
조회 수
답글
좋아요 수
$.ajax({
type: 'POST',
data:'id='+ "1111",
success: function(msg){
var myMsg = "hello";
alert(myMsg);
}
});
조회 수
답글
좋아요 수
I just tested our SLing Post example and it worked. Try loading the 6.2 package here and testing -- Adobe Experience Manager Help | Submitting Adobe Experience Manager form data to Java Sling Servlets
You should get this result.
조회 수
답글
좋아요 수
What could be the possible reason of the kind of error m getting. Is that org.json dependency is a mandatory thing to be added. I think since I am not passing data in Json format that might not be the cause.
What else can I check to make this work.
조회 수
답글
좋아요 수
DId you test the servlet that i pointed you too? I want to know if this works in your environment. COuld be a issue with your environment.
조회 수
답글
좋아요 수
Can you pls hit your servlet on aem server and look at the logs. make sure you pass correct query parameter when hititng the servlet
Generally it should show throw some error if servlet is not resolved or not registered correctly in servlet
조회 수
답글
좋아요 수
조회 수
Likes
답글
조회 수
Likes
답글