Httpservlet cannot be resolved to a type 这个问题与上个问题可以说是“错的类似”。解决方案:就是在Tomcat的lib目录下加入servlet-api.jar 即可。