新建jsp文件,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path错误解决方法

时间:2022-06-19 01:41:02
新建一个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错误解决方法

解决方法:
1. 右键项目->build path->configure build path... 2. 选择 Java build path 3. Add Library->Server Runtime->Click Next 4. 选择 Server runtime->选择Tomcat->Finish