Resolving this error: The import javax.servlet cannot be resolved
You need the servlets.jar or j2ee.jar in your class path.
With Maven, you can get this dependency by adding the following to your pom.xml.
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
[Click to add or edit comments])
Please prepend comments below including a date