This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet Filters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Filters" Watch "Servlet Filters" New topic

Servlet Filters

Priya Sri
Ranch Hand

Joined: Mar 30, 2004
Posts: 84
Hi friends,

1) What are Servlet Filters?
2) Why are they needed?

If u know, tell me...

Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 226

Your magic wand is here.

Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Servlet Filter is used to intercept every incoming request before invokes resources and every outgoing response to client.
So an advantage of this process is we can do authorization process whether that client have permission to access the resource.

Correct me if I am wrong...
Hope this help

I agree. Here's the link:
subject: Servlet Filters
Similar Threads
redirect to error page upon session timedout
Render my web page in pdf instead that hmtl
Optimizing Session tracking code.
Problem with method
Filter Mapping Problem