I have my form as below:
<form action="/bin/mySearchServlet" name="form" method="POST">
<input type="hidden" value="${resource.path} name="one">
<input type="submit" />
</form>
and servlet as below:
@SlingServlet(paths="/bin/mySearchServlet", methods = "POST", metatype=true)
Even though the path matches it is not hitting the servlet. Anyone know why?
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
Can anyone share package which contains form submission to servlet?
Views
Replies
Total Likes
Hi,
There are many ways to submit the form to the servlet.
Option 1:
-> To know how to do a Path to register a Servlet see this below our community article discuss the use case.
//https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html(Submitting Adobe Experience Manager form data to Java Sling Servlets)
Option 2:
-> To know how to submit the form using Sling Post Servlets, see this below article.
//https://helpx.adobe.com/experience-manager/using/using-sling-post-servlets.html(Using Sling Post Servlets to submit mobile data to Adobe Experience Manager)
Hope this helps!
~ Ratna.
Views
Replies
Total Likes
Make sure you have configured servlet for authentication not required
Views
Replies
Total Likes
Hi RK
The information you provided is not enough to give you right answer. Please describe it more. If possible share logs/screenshots.
Views
Replies
Total Likes
Views
Replies
Total Likes