This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes FilterConfig doubt ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "FilterConfig doubt ..." Watch "FilterConfig doubt ..." New topic
Author

FilterConfig doubt ...

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

Is what i'm thinking true or not ?

The container gives the Filter a FilerConfig when the Filter is actually called, not at deploy time.

Please clear my doubts ...

Thanks in advance ...


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
Hi,

the Filter.init(FilterConfig) is called before any request is for the filter. This does NOT mean that the init method is called at the first request it receives. But it's not developer's concern the time when the init method is invoked.

I hope this helped you


SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FilterConfig doubt ...
 
Similar Threads
WA #1.....word association
Logging while clicking on link
I want to filter some javaranch pages for reading?
automaticall set https in url with jsp
Better way to check user session