what we use for filters instead of web.xml

Avatar

Avatar

amity88328484

Avatar

amity88328484

amity88328484

09-05-2019

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

Replies

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

09-05-2019

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

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

09-05-2019

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

Avatar

Avatar

amity88328484

Avatar

amity88328484

amity88328484

10-05-2019

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

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

10-05-2019

request path pattern