It seems that Sling expects every form of POST to change JCR. So the expected / standard behavior will be POST-redirect-GET, which is great for most things. However, I need to be able to POST for AEM, and then use the data in this POST to create a visualized result. Our use of AEM is void and therefore I do not want to transfer POST'd data to the session in order to use it in a subsequent GET.
Some of them recommend putting POST data in the browser’s SessionStorage, but this is not broadly supported.
As far as I can tell, for Sling in AEM there is no way to take POST and produce a visualized result.
Here is a screenshot of what POST creates in the page / resourceType component and in any included jsp Sling that is involved in rendering.

I tried things like using the "nop" operation .
<input type="hidden" name=":operation" value="nop" />
But in any case, all servlets believe that POST occurs and is not displayed properly.
There is the possibility of creating a custom servlet to handle POST, but how do you process the template output and modify the request so that all components consider that they are serving GET?
UPDATED: Here is a screenshot of the result of "nop" POST.jsp.

source
share