1:是因为没有加入servlet-api.jar
2:下载网址:http://download.csdn.net/detail/jiuyueguang/5745209
3:然后在项目右键-》build path-》add library