Solved
post call to rest api using parameters from AEM form
How to pass post parameters from a AEM form to REST 3rd party api and handle the parameters in servlet and using HttpsURLConnection
How to pass post parameters from a AEM form to REST 3rd party api and handle the parameters in servlet and using HttpsURLConnection
when your form is submitting to a servlet, write the following code in your servlet
Enumeration<String> params = request.getParameterNames();
while(params.hasMoreElements())
{
String paramName = params.nextElement();
System.out.println("The param Name is "+paramName);
String data = request.getParameter(paramName);System.out.println("The data is "+data);
}
. You will get to see the parameters passed to your servlet. You can then process the data as needed
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.