Login page filter problems

63 Views Asked by At

I'm trying to apply a filter to my login page. I'm just not sure how it works, since I'm not too familiar with filters. I'm trying to redirect a user that logs in to different pages based on their user type. A user has either the user type 'Customer', 'Owner' or 'Mechanic'. The jsp pages for each usertype are in different directories, which is the problem. If I need to supply any code, please tell me. Does anyone know a way I can do this? Thanks in advance!

1

There are 1 best solutions below

2
On BEST ANSWER

In web.xml you can make entry which will accept a URL-mapping and whenever you will call that URL your filter will intercept that and you can navigate your request to any page.