SlingPostprocessor related doubt. | Community
Skip to main content
Level 9
November 18, 2015
Solved

SlingPostprocessor related doubt.

  • November 18, 2015
  • 2 replies
  • 716 views

Hi All,

Doubt as below :

https://helpx.adobe.com/experience-manager/using/SlingPostProcessor.html article talks about SlingPostProcessor.

I also went through https://sling.apache.org/apidocs/sling5/org/apache/sling/servlets/post/SlingPostProcessor.html

1] I was not quite able to understand the exact use of this.So, is it something like we have a form wherein we fill in data and before submitting that data to be saved in the jcr repository we make us of this.

2] Also, in this scenario a condition is checked if node is added below "/content" or not. But in the form data[in the mobile screenshot in article] that we are filling in, there is nowhere we are specifying the information location, where the data is to be stored. So, I am a bit confused here.

Any thoughts on this will be helpful.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

The SlingPostServlet is a default servlet that can be used to post form data to the AEM JCR. Of course, you have the choice of developing your own sling servlet instead.

The above article was about creating a sling post processor, which is fired when a SlingPostServlet occurs.  So to your first question, the answer is yes. You can use a sling post processor to introduce app logic you want to use when a sling post servlet is used.

To your 2nd, when you perform a sling post servlet, you DO specify the JCR path. See this article where a path under /content is used.

https://helpx.adobe.com/experience-manager/using/using-sling-post-servlets.html

2 replies

smacdonald2008
Level 10
November 18, 2015

 The SlingPostServlet is a default servlet that can be used to post form data to the AEM JCR. Of course, you have the choice of developing your own sling servlet instead.

smacdonald2008
smacdonald2008Accepted solution
Level 10
November 18, 2015

The SlingPostServlet is a default servlet that can be used to post form data to the AEM JCR. Of course, you have the choice of developing your own sling servlet instead.

The above article was about creating a sling post processor, which is fired when a SlingPostServlet occurs.  So to your first question, the answer is yes. You can use a sling post processor to introduce app logic you want to use when a sling post servlet is used.

To your 2nd, when you perform a sling post servlet, you DO specify the JCR path. See this article where a path under /content is used.

https://helpx.adobe.com/experience-manager/using/using-sling-post-servlets.html