Hi Anil.
Now the url that I am giving in the web browser is : http://localhost:8080/testfilter/test.do
this is not executing anything inside the filter System.out.println() statements
In BeerRequestFilter.java, the method getRemoteUser() returns 'null', if the user is not authenticated. See HttpServletRequest's getRemoterUser()
method. Because of this, System.out.println("Just printed the username "+name); is not executed in the following code part.
The System.out.println("This is filter Initialization") in
will be executed during container startup, during initialization phase.
SCJP5.0, SCWCD5.0, OCEJPAD6, OCPJWSD6