编写java servlet时报错:the import javax.servlet can not be resovled;
把tomcat安装目录lib下的servlet-api.jar这个包导入到myeclipse中就可解决。