前言

有时候当我们在新建的JavaWeb项目中创建jsp页面的时候,会有如图所示的提示

Eclipse新建Jsp页面提示 The superclass "javax.servlet.HttpServlet" was not found on the Java Build Path

这是因为我omen没有把Tomcat关联到Build Path中,因为在Tomcat的lib目录中,有个HttpServlet这个类,如图所示
Eclipse新建Jsp页面提示 The superclass "javax.servlet.HttpServlet" was not found on the Java Build Path

具体执行步骤如下所示

Eclipse新建Jsp页面提示 The superclass "javax.servlet.HttpServlet" was not found on the Java Build Path

相关文章: