I am new to AEM forms ,pardon me if my question is quite silly. I am trying to create custom Submit action for adaptive forms following the article : https://docs.adobe.com/content/help/en/experience-manager-64/forms/customize-aem-forms/custom-submit... But I am ending up with following error when trying to submit the form. 08.08.2020 00:40:13.931 *ERROR* [0:0:0:0:0:0:0:1 [1596827413533] POST /content/forms/af/amplify/Protocol1/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Exception: org.apache.sling.scripting.jsp.jasper.JasperException: /apps/custom_submit_action1/store_and_mail/post.POST.jsp(10,65) Attempt to redefine the prefix sling to https://sling.apache.org/taglibs/sling/1.0, when it was already defined as http://sling.apache.org/taglibs/sling/1.0 in the current scope. org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: /apps/custom_submit_action1/store_and_mail/post.POST.jsp(10,65) Attempt to redefine the prefix sling to https://sling.apache.org/taglibs/sling/1.0, when it was already defined as http://sling.apache.org/taglibs/sling/1.0 in the current scope.
Will you please help what can be the reason to get such error. I am not able to send mail and submit data is not stored as well. NOTE : When I am using OOTB submit action such as send mail , its working fine.