解决方法
得加入tomcat的jar包,右击项目->build path-add ADD extrenal jars ->选择Tomacat lib ->导入 jsp-api.jar 和servlet-api.jar