首页 > 代码库 > The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from


解决办法:加入相关类的 jar 包到你的 classpath (右键点击某个jar包--build path--config build path...---liberary---Add external jar library),此处加入 servelet-api.jar(此包在eclipse/plugins目录中可以找得到,其他类似的错误也用相同的方法解决) 到 classpath ,OK 。