why do we need filter in a servlet

Reply

Join Date: Feb 2008
Posts: 2
Reputation: vaskar is an unknown quantity at this point 
Solved Threads: 0
vaskar vaskar is offline Offline
Newbie Poster

why do we need filter in a servlet

 
0
  #1
Apr 1st, 2008
Hi All,

why do we need filter in a servlet? When we use servlet filter?

pls help me

thanks!
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,416
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 257
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: why do we need filter in a servlet

 
0
  #2
Apr 1st, 2008
For whatever you want.

It works extremely well for things like hit counters and authentication checks, though.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: why do we need filter in a servlet

 
0
  #3
Apr 1st, 2008
and in web services stacks for preprocessing the incoming SOAP message headers, a requirement of the specification.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC