I am using the following header in my web.xml
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
I don't know what I am doing wrong but Idea is unable to suggest correct syntax for web.xml
. I am getting the below.
I have the following in my pom.xml
so I am sure the JAR file is correct.
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
I understand that the autocomplete should be working as per the XSD file. So is the XSD being used incorrect?