当在Web Content中创建一个默认的jsp文件时,
在
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build 的问题。
解决:
右击web工程->属性或Build Path->Java Build Path->Libraries-> Add Libray...->Server Runtime -> Apache tomcat x.v
然后在Java Bulid Path 中勾选->Apache tomcat x.v
完成。