What is the SlingPostServlet? | Community
Skip to main content
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 Community_Admin

A SlingPostServlet is another way in which you can modify the AEM JCR. Using a SlingPostServlet, you can store, access, update, and delete nodes and properties. For example, the following Post creates a node:
<code>
<form action="/mynode" method="POST">
<input type="text" name="title">
<textarea name="body">
</form>
</code>

This POST action creates a node named mynode. Properties title and body are set.

For more information, see the Sling Cheatsheet.

2 replies

Community_Admin
Adobe Employee
Community_AdminAdobe EmployeeAuthorAccepted solution
Adobe Employee
October 16, 2015

A SlingPostServlet is another way in which you can modify the AEM JCR. Using a SlingPostServlet, you can store, access, update, and delete nodes and properties. For example, the following Post creates a node:
<code>
<form action="/mynode" method="POST">
<input type="text" name="title">
<textarea name="body">
</form>
</code>

This POST action creates a node named mynode. Properties title and body are set.

For more information, see the Sling Cheatsheet.

Adobe Employee
October 16, 2015