Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (10.2k points)

I have a project created by Maven integration in Eclipse. All work fine, but in the workspace in all JSP files have this:

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

To the first string where place:

<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

When I create a basic dynamic web project and JSP in - all is fine, no errors.

1 Answer

0 votes
by (46k points)

To solve this error you need to add a runtime at the beginning and select project properties. Then verify the server name from the 'Runtimes' tab as displayed in the image.Select runtime from Project Facets as shown the in image

Browse Categories

...