HttpServlet cannot be resolved to a type解决方法

1:是因为没有加入servlet-api.jar

2:下载网址:http://download.csdn.net/detail/jiuyueguang/5745209

3:然后在项目右键-》build path-》add library

原文地址:https://www.cnblogs.com/jiuyueguang/p/3187384.html