How can you retrieve a servlet's initialization parameters in the init method?
- getInitParameter()
- getParameters()
- getServletConfig()
- getServletContext()
In the init method, you can use getInitParameter() to retrieve a servlet's initialization parameters.
Loading...
Related Quiz
- How would a filter log request information without altering the request itself?
- What is the role of the 'rollback' statement in transaction management?
- Which method is used to batch multiple SQL statements before sending them to the database?
- How do filters interact with different types of servlets and JSP pages?
- What is two-phase commit protocol in the context of transaction management?