JSP文件报错The superclass“javax.servlet.http.HttpServlet“ was not found on the Java Build Path

JSP文件报错The superclass"javax.servlet.http.HttpServlet" was not found on the Java Build Path

这个错误是此web工程由于未引入服务器的library

**解决办法:

若没有配置服务器,则先配置服务器windows-》preferences-》serverJSP文件报错The superclass“javax.servlet.http.HttpServlet“ was not found on the Java Build Path
服务器配置完成之后,右击你的项目properties
JSP文件报错The superclass“javax.servlet.http.HttpServlet“ was not found on the Java Build Path

JSP文件报错The superclass“javax.servlet.http.HttpServlet“ was not found on the Java Build Path
选上自己配置好的服务器,添加进去就ok了