- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

使用eclipse创建Dynamic Web Project时创建.jsp文件是报错

解决方案:

1、右击Build Path点击Congigure Build Path..然后点击Add Exter JARs..添加自己项目需要的jar包

- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 

 2、点击Add Library添加如图所示

- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path