eclipse的web项目中index.jsp文件出现The superclass" " was not found on the java build path

问题如图

eclipse的web项目中index.jsp文件出现The superclass" " was not found on the java build path
eclipse的web项目中index.jsp文件出现The superclass" " was not found on the java build path

解决办法

  1. eclipse没有配置tomcat。可以参考eclipse配置tomcat
  2. 如果已配置安装好tomcat,确认无误,右击项目,选中Build Path/Configure Build Path

eclipse的web项目中index.jsp文件出现The superclass" " was not found on the java build path
点击Add library
eclipse的web项目中index.jsp文件出现The superclass" " was not found on the java build path
选中Server Runtime,点击next
eclipse的web项目中index.jsp文件出现The superclass" " was not found on the java build path
选中Apache Tomcat v7.0,finish即可
eclipse的web项目中index.jsp文件出现The superclass" " was not found on the java build path

处理结果

现在红叉就消除了
eclipse的web项目中index.jsp文件出现The superclass" " was not found on the java build path