Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun

建了一个简单web项目,但是项目出了一个Description Resource Path Location Type

Description Resource Path Location Type
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path index.jsp /strutsdemo/WebContent line 1 JSP Problem
Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
虽然项目可以正常运行,不过对于有强迫症的我来说,想将红叉的问题解决掉。

解决方案:

选中项目名称strutsdemo,右键选中Build Path --> Configure Build Path…
Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
根据自己需要设置对应的server runtime 环境
Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun