I'm trying to create a test form based on the example template "Basic" from AEM forms and changed the submit action to "Submit to rest endpoint" and typed in my servlet path into the field "URL for post request". But the submit results to an HTTP 500 error (but no error is shown in the log, only in the browser console). If I change the path to a complete URL, my servlet is called. But I don't want to use a complete url because this url depends on the current environment. So how I have to configure it?
In this documentation (https://experienceleague.adobe.com/docs/experience-manager-65/forms/adaptive-forms-basic-authoring/c...) they wrote, that I can type in a content path:
"To post data to an internal server, provide path of the resource. The data is posted the path of the resource. For example, /content/restEndPoint. For such post requests, the authentication information of the submit request is used."
So actually it should work, right?
I'm using AEM with version 6.4.8