Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

what we use for filters instead of web.xml

Avatar

Level 1

i have one login page in aem which is in java script and one authentication servlet for login page i have to create a login filter which will track all records of log users i am not understanding how to do mapping for authentication servlet

i given @slingservlet(path=/bin/loginservlet)

what i have to give for filter to confiure this servlet

4 Replies

Avatar

Level 10

Path based servlets are not recommended, use resourcetype for the servlet and a pattern for fliter

Apache Sling :: Servlets and Scripts

Apache Sling :: Servlet Filter Support

Avatar

Level 10

If you are looking at writing a login component - we have an example of that here: Creating a Login Component for the Experience Manager Weekend Site

That shows you HOW TO write a login component for the AEM WEEKEND Site - that is created here: Getting Started with AEM Sites - WKND Tutorial