Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

what we use for filters instead of web.xml


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


Community Advisor

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


Level 1

In pattern i have to write a path of servlet??


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