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”.