How can a filter access initialization parameters set in the web.xml file?
- By using the FilterConfig object
- By using the HttpResponse object
- By using the HttpServletRequest object
- By using the ServletContext object
A filter can access initialization parameters set in the web.xml file by using the FilterConfig object. This object provides methods to retrieve initialization parameters.
Loading...
Related Quiz
- To set a date in a PreparedStatement, the method _________ is used.
- The concept of ________ allows multiple users to make changes to the database without affecting each other.
- To handle binary data in a WebSocket, the _________ method is typically implemented.
- A web application requires users to log in for access. Which servlet feature should be implemented for this requirement?
- In what scenarios is it safe to have instance variables in a servlet?