How does the servlet container pass initialization parameters to the servlet?
- Through XML configuration
- Through environment variables
- Through method parameters
- Through web.xml
The servlet container passes initialization parameters to the servlet through the web.xml configuration file.
Loading...
Related Quiz
- What is a significant difference in how session data is handled between RequestDispatcher's forward and HttpServletResponse's sendRedirect?
- Can a servlet's destroy() method be overridden? If yes, what should be considered?
- Which interface must a class implement to act as a filter in a web application?
- In a complex web application using MVC and servlets, a new feature requires integration of a third-party service. Where should this integration primarily take place?
- _________ encoding is a common technique to prevent XSS by converting special characters into HTML entities.