Sling Framework Part – 2 | AEM Community Blog Seeding

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,206 likes

Total Posts

6,421 posts

Correct reply

1,148 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,206 likes

Total Posts

6,421 posts

Correct reply

1,148 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

20-07-2021

BlogImage.jpg

Sling Framework Part – 2 by Techinnovia

Abstract

Sling Post Servlet, Resource Resolver, Service Users
Welcome to the second part of the Sling Framework.

After completing this part, you should be able to

Describe the purpose of Sling Post Servlet and How it works.
Work with Sling Resource Resolver.
Understand the concept of service users.
Understand context-aware configurations.
Sling POST Servlet

Sling POST Servlet is one of the key features of Sling.
It handles all POST operations to Sling instance by default.
This servlet provides possibility to create, modify, copy-move, delete to invoke resources.
It can be extended with additional POST operations and PostProcessor.
The Servlet can be called with a standard form submission as you can see on this eg.
The action property is a node path in the repository, this node will be modified during Sling Servlet POST execution.
The name property in parameter contains, a node property which will be modified, and value property – defines a new value for the node’s property.

After this form submission “title”- property will be set on a node “/content/page”.

Read Full Blog

Sling Framework Part – 2

Q&A

Please use this thread to ask the related questions.