This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
"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).
Joined: Feb 19, 2009
I have this in my login page.
and this in the filter mapping
Why wont this work?
I have the authntication code in the filter.
I am trying to do some.jsp --> filter->(not authenticated)---> login.jsp-->filter-->(authenticated)-->some.jsp