The __________ method is used to initialize the filter with configuration parameters.
- configure(FilterConfig config)
- init(FilterConfig config)
- initialize(FilterConfig config)
- setup(FilterConfig config)
The init(FilterConfig config) method is used to initialize the filter with configuration parameters.
Loading...
Related Quiz
- In a scenario where a filter needs to restrict access based on user roles, which object or method is essential for implementing this?
- How do distributed transactions differ from local transactions?
- What is the significance of the web.xml file in handling servlet errors?
- How do servlet filters complement the MVC architecture in web applications?
- Which method is used to get a reference to the ServletContext?