Hi All,

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

pls help me

thanks!

Recommended Answers

All 2 Replies

For whatever you want.

It works extremely well for things like hit counters and authentication checks, though.

and in web services stacks for preprocessing the incoming SOAP message headers, a requirement of the specification.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.