Justin Howard wrote:FORMS is the project name.
"project name" has no meaning in this context. What is its function in the URL? Is it a folder name? The context path? And why is it capitalized?
I want the filter to be excuted for all pages. Maybe using *.jsp will help.
Really? What about the login page?
How can make the login page submit to the filter?
Not sure what you are asking. You don't submit to a filter, you submit to a resource like a
servlet or
JSP.
basically, your filter should perform the authentication check (but not for pages that don't need to be authenticated, like the login page) and continue on if all is well, but redirect to the login page if not. The login page should submit to its action that checks the credentials and sets up the session, then traverses to the "main page" of the app (where the filter will check the session for valid authentication).