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

what we use for filters instead of web.xml

amity88328484
Level 1
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
Gaurav-Behl
Community Advisor
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

smacdonald2008
Level 10
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