I have a web application which has 'Login' feature. Once I login to the application, it should check in all the Jsp Pages that it is logged in or not. If not, the application should be redirected to the login page quoting that 'He should login to use the application'.
Dev,
First thing, dont program to access your jsp directly unless there are no server-side processing involved.
"Session" is what you should be after. Configure a Filter to check if a user belongs to any session , (you could check with HttpSession methods) and route to login page accordingly.
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss