Sling Servlets Part 01 - What is a Servlet? Part 02 - What is a Sling Servlet Part 03 - Servlet Resource Provider Part 04 - Registration via Path or Resource Type Part 05 - Types of Servlets Part 06 - Default and Opting Servlets In this post, we are going to discuss two important types of servlets in AEM - Default and Opting servlets, their uses and pros and cons. Default Servlet A default servlet is selected if no servlet or script for the current resource type can be found. This servlet is registered with a special resource type sling/servlet/default . The default servlet is resolved exactly the same way as for any resource type. That is, also for the default Servlet selection, the request selectors and extension or method are considered. Also, the servlet may be a servlet registered as an OSGi service or it may be a script stored in the repository or provided by any bundle. Finally, if not even a registered default Servlet may be resolved for the
Learn all about AEM development. The best place for the newbies to start and a good refresher for the experienced AEM developers. These blog posts will eventually be moved to my new revamped website - https://redquark.org/