在JSP中添加绝对路径${pageContext.request.contextPath}时,报错“javax.servlet.jsp.JspException cannot be resolved to a type”

原因:由于缺少jsp-api.jar导致的,这个包在tomcat目录下有。

解决办法:

1,

javax.servlet.jsp.JspException cannot be resolved to a type
导入后JSP不再报错

javax.servlet.jsp.JspException cannot be resolved to a type

2,

javax.servlet.jsp.JspException cannot be resolved to a type
操作完,发现把tomcat中lib下的包,全部引入了。
javax.servlet.jsp.JspException cannot be resolved to a type

相关文章:

  • 2021-04-27
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-05-26
  • 2021-06-23
猜你喜欢
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案