What is the purpose of the tag in a web.xml file?
- Define servlet configuration
- Map servlet to URL pattern
- Specify servlet class
- Specify servlet name
The tag in the web.xml file is used to define the configuration of a servlet. It provides information such as the servlet name, servlet class, and other configuration details, allowing the servlet container to understand how to manage and handle the servlet during the application's lifecycle.
Loading...
Related Quiz
- How can an HTTP servlet differentiate between GET and POST requests?
- The listener interface _________ is used to listen for request attribute changes.
- How does a servlet container differentiate between authenticated and unauthenticated users?
- How can you retrieve a servlet's initialization parameters in the init method?
- What is the difference between filter chaining and servlet chaining?