背景:从实验室的学长那导入一个新项目,可以正常运行,但出现 <% ...... %>.报错提示。错误提示如下:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。
原因:未知。
解决方案:按如下顺序 右键单击项目->build path->configure build path->add library->server runtime->apache tomcat 后,错误提示消失。