I am using AEM6.3 and using sling resource as granite/ui/components/coral/foundation/form. I need to have the java-script getting called to perform ajax call to servlet. But on page render the action is showing empty and hence cannot call java-script on submit . Please let me know o resolve it.
Note:- I could have called the servlet directly in action using something like /bin/servletcall .But the problem i have is i need to show a dialog success on the page after successful operation of servlet hence thinking that using ajax will be better option.
Not sure how could i achieve it by directly calling servlet in action
Could you please provide any sample code which i could use with