what we use for filters instead of web.xml

Avatar

Avatar
Boost 1
Level 1
amity88328484
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
amity88328484
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
amity88328484
Level 1

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
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

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
Boost 1
Level 1
amity88328484
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
amity88328484
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
amity88328484
Level 1

10-05-2019

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

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

10-05-2019

request path pattern