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