What is difference between interceptors and filters?



What is difference between interceptors and filters?..

Answer / Ranveer Singh Azad

Interceptors are part of Struts framework and are used to perform actions before or after the execution of an action method. Filters, on the other hand, are a generic servlet feature that can be used for various purposes such as authentication, logging, and encoding.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

Why is action servlet a singleton in struts?

1 Answers  


what is mean by custom tag?

5 Answers   Wipro,


How the flow of various requests happens in struts application?

1 Answers  


How to upload struts file?

1 Answers  


what is the difference between *.do & /do.*/? So what is the diffenence btn extension mapping & path mapping.What is those difference in work effect?

6 Answers   Wipro,


What configurations are stored in struts configuration file ?

1 Answers  


What is the naming convention for a resource bundle file in struts2?

1 Answers  


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

1 Answers  


What is the purpose of interceptors?

1 Answers  


What is the purpose of '@customvalidator'?

1 Answers  


What do you mean by inner class and anonymous class?

1 Answers  


Which components are available using actioncontext map?

1 Answers  


Categories