Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

SlingPostprocessor related doubt.

Avatar

Level 9

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Level 10

 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.

Avatar

Correct answer by
Level 10

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