This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hi. Shamefully, there is something I don't understand about Servlets filters... My basic idea of filters : If the request satifies your requirements, allow it to hit the resource (you know, chain.doFilter), if not, return from the method. But recently, I found this snippet from Hibernate CaveatEmptor:
How the hell they put another statement after doFilter( ) call ?
So, the workflow is as the following : - print 1 - filter1 chain.doFilter( ); - print 3 - filter2 chain.doFilter( ); - hit the JSP - print 4 - print 2 Right ? [ April 04, 2007: Message edited by: John Todd ]