JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

JSP动态网站开发工程项目碰到错误"The superclass “javax.servlet.http.HttpServlet” was not found on the java Build Path,该怎么解决???

编译JSP动态网站工程项目,喷到如下所示的错误:
JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

查找源代码ImageUpload.jsp后发现,jsp源代码页面出现打叉的红色提示,
JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found
这时,可以这么解决这个问题。首先找到创建好的JSP动态网站项目的文件夹,找到Build Path菜单下的子菜单Configure Build Path;

JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

在新建项目上单击鼠标右键,找到Build Path菜单下的子菜单Configure Build Path;,鼠标左键单击Configure Build Path,会弹出如下界面,

JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

点击Add Library,

JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

选中 Server Runtime,

JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

点击Next(下一步),

JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

选中JSP工程项目需要使用的Tomcat,点击Finish。

JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

点击OK,完成后错误就消失了。。。。
JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found

错误消失后,显示如下图所示,

JSP动态网站开发工程项目碰到错误“The superclass “javax.servlet.http.HttpServlet“ was not found