web开发中新建jsp文件时出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java 的解决方法

 1.在我们新建一个jsp文件时  出现
    The superclass "javax.servlet.http.HttpServlet" was not found on the Java

  Build Pathweb开发中新建jsp文件时出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java 的解决方法


2.  在新建一个class文件时要继承一个接口  输进去 显示接口不存在  web开发中新建jsp文件时出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java 的解决方法web开发中新建jsp文件时出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java 的解决方法


原因就是没有添加tomcat进去
解决方法如下图 


web开发中新建jsp文件时出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java 的解决方法