This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes do filter inline and callback Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "do filter inline and callback" Watch "do filter inline and callback" New topic
Author

do filter inline and callback

Paul Statham
Ranch Hand

Joined: Dec 05, 2008
Posts: 56
So dofilter is apparently both a container callback and an inline method.

Correct me if i'm wrong but does this mean it's called by the container and itself by doing chain.dofilter?
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper

Joined: Apr 07, 2010
Posts: 1999
    
  39

Hi Paul,
Correct me if i'm wrong but does this mean it's called by the container and itself by doing chain.dofilter?

Yes, the first filter is called by the container because a filter is configured in the web.xml, all the following filters in the chain are called from your doFilter() method's chain.doFilter().

Regards,
Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: do filter inline and callback
 
It's not a secret anymore!