Hi Guys,
From a Java Servlet i am returning a String value to EXTJs and based on that I am displaying a CQ Message box , where author can choose Yes(OK) or NO(Cancel) , based on this value i need to return the control to my Servlet (I need to take care of other Business logic based on this value from author), how can i achieve this? Do i need to call/create another Servlet and write the logic there ? Can I Call the same Servlet in any way ? Looking forward for a reply..thanks in Advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Initially when you are getting value you can make a ajax call to get the required data with same servlet.(GET request)
Once the value is selected by user you can send the response via ajax call to that sameservlet ( POST request, in this case doPost() will be used)
Take a look at servlet use case:https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html
Views
Replies
Total Likes
Initially when you are getting value you can make a ajax call to get the required data with same servlet.(GET request)
Once the value is selected by user you can send the response via ajax call to that sameservlet ( POST request, in this case doPost() will be used)
Take a look at servlet use case:https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html
Views
Replies
Total Likes