So This servlet will be running in background and checking for the ajax request. Once it arrives the servlet will work, Am I right?Another thing is I have to create this java code as a bundle and deploy it using maven?
You're right. But I need it when I am creating a page without using the inbuilt form contents in AEM and uses normal html tags like <form><input> etc. I am actually trying to replicate the same action in a page created using static template.When I click on the submit button the data should be submit...