The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
在eclipse中新建一个工程后,新建一个jsp文件,但是在jsp文件的开头出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path错误,
这是因为工程没有添加到服务器中,
解决方法如下:
1、右击web工程-》proterties-》Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》选择相应服务器进行添加。