如果你在页面使用了全局路径,也就是:
${pageContext.request.contextPath} 会出现 javax.servlet cannot be resolved to a type这个错误!
javax.servlet cannot be resolved to a type错误

原因是: 缺少 jsp-api.jar 和 servlet-api.jar这两个jar包
解决办法 就是:吧你安装的Tomcat文件夹下的lib目录下的这两个jar包添加 build path中

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2021-07-18
  • 2021-06-23
  • 2021-11-27
  • 2021-06-11
猜你喜欢
  • 2022-01-21
  • 2021-12-21
  • 2021-08-28
  • 2022-01-19
  • 2021-07-28
  • 2021-10-04
  • 2022-12-23
相关资源
相似解决方案