After the new installation of Eclipse, a Web project and a new JSP file are created, an error occurs
The superclass "Javax.servlet.http.HttpServlet" is not found on the Java Build Path
The problem is because the Tomcat-related class library is missing from the project
Because this is a newly installed eclipse, it is not actually configured with Tomcat, so the workaround is in two steps:
1. Configure the external Tomcat
Windows, Preferences, Server, runtime environments , add ... Select the type of runtime environment, select The path of the Tomcat server software that has been downloaded
2. Build the Tomcat Library
New project, right-click on project name, Properties, Java Build Path, Libraries tab, ADD Library, Server Runtime, select Server Software name Said
Configure the external Tomcat in Eclipse and build the Tomcat library after the new project