web.xml
is the deployment descriptor for a Java web application.
We can specify the namespace declaration and schema location in web.xml
file for different Java servlet version:
- Java Servlet 3.1
- Java Servlet 3.0
- Java Servlet 2.5
- Java Servlet 2.4
- Java Servlet 2.3
Note: Please rename the file name from web.xml-servlet-<version>-template.xml
to web.xml
before you use it in your project.
Visit the blog: web.xml Namespace Declaration and Schema Location Example