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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *