Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

What is the SlingPostServlet?

Avatar

Employee

What is the SlingPostServlet?

1 Accepted Solution

Avatar

Correct answer by
Employee

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

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.