Filter are special java class which get called on the mapped resource. You don't need to call them. If you have configured any filter on *.do file then firstly the filter associated with it will be called in which you can do the appropriate coding for handling the request. For more details visit this
I hope you are asking in such a way like there are 2 roles like "Admin" and "User"
Where user is not supposed to access all the pages.
In that case while you authenticate the person who logins into the application, keep the role in session.
And in jsp you can write logic of "IF" condition. And in condition check the role whether its User or Admin, if its user dont display the link but in Admin it has to show.
Post if you needed any brief information about this like which struts are you using and etc.....
I am using a request processor (Controller) in struts to force login the user.
But I need to restrict the direct acess of urls as the user need to fill some data in the first page of application.
So i need to redirect the url to index page as soon as a user logged in.
can some one explain more about the filter class how to map forward to index page