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>

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.