This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 ]