aspose file tools
The moose likes Servlets and the fly likes Servlet Filters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlet Filters" Watch "Servlet Filters" New topic
Author

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...

Bye..
Priya
Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 225

Your magic wand is here.


Debashish
SCJP2, SCWCD 1.4
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Hi,
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

daniel
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlet Filters
 
Similar Threads
redirect to error page upon session timedout
Render my web page in pdf instead that hmtl
Problem with method
Filter Mapping Problem
Optimizing Session tracking code.