Why do we have servlet filters?



Why do we have servlet filters?..

Answer / Saurabh Pradeep

Servlet Filters are used for pre-processing and post-processing of requests and responses. They help in request validation, authentication, logging, compression, etc.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

Are Servlets Thread Safe? How to achieve thread safety in servlets?

1 Answers  


what is the difference between Servlet and JSP?Advantage of JSP over Servelt?Any concept present in JSP which we cant implement in Servlet?

31 Answers   ABC, Apere, AZTEC, CTS, CybAge, iFlex, Impact Systems, Sara, TCS,


What are setComment and getComment methods in Cookies?

2 Answers  


What is cookie in servlet?

1 Answers  


How to make servlet thread safe?

9 Answers   Frisco Tech, InfoVista, WipSys Technologies,


explain the advantages of servlet life cycle?

1 Answers  


What is with the javax.servlet package naming?

2 Answers  


How is the get () method different from the post() method?

1 Answers  


How to notify an object in session when session is invalidated or timed-out?

1 Answers  


How to get the IP address of client in servlet?

1 Answers  


What are the functions of the servlet container?

1 Answers  


can it possible to validate form field before execution of a servlet service method if yes how??

6 Answers  


Categories