What is the role of servlet-mapping in the servlet's configuration?
- It configures the servlet's initialization parameters.
- It defines the servlet's behavior in handling HTTP requests.
- It determines the servlet's load-on-startup configuration.
- It specifies the URL pattern to associate with a servlet.
Servlet-mapping in the web.xml file associates a URL pattern with a servlet, specifying which requests should be directed to that servlet for processing. It helps in defining the servlet's mapping to incoming URLs.
Loading...
Related Quiz
- Identify the listener interface that would be used to log session creation and destruction.
- What is the impact of setting a very high or very low size for the connection pool?
- How does the servlet container use the order of filter mappings in web.xml?
- What is a CallableStatement used for in JDBC?
- What is the advantage of using CallableStatement in JDBC?