JSP报错javax.servlet.jsp.JspException cannot be resolved to a type solution
程序员文章站
2022-05-07 18:17:27
新导入的项目,发现jsp报错,鼠标放在有红色波浪线的代码处,Description Resource Path Location Typejavax.servlet.jsp.JspException cannot be resolved to a type login.jsp /springmvc-mybatis/WebContent/WEB-INF/jsp line 11 JSP Problem这是项目中缺少jsp-api.jar包引起的。So......
新导入的项目,发现jsp报错,鼠标放在有红色波浪线的代码处,
Description Resource Path Location Type
javax.servlet.jsp.JspException cannot be resolved to a type login.jsp /springmvc-mybatis/WebContent/WEB-INF/jsp line 11 JSP Problem
这是项目中缺少jsp-api.jar包引起的。
Solution:
可以在网上下载此jar包,或者直接使用tomcat安装目录里的也行。
右击项目--Build Path --Configure Build Path ,点击Java Build Path,选中Libraries,点击Add External JARs选择jsp-api.jar包,点击OK就可以了。
本文地址:https://blog.csdn.net/msgsun/article/details/107165731
上一篇: 新产品网络推广经验教程
推荐阅读
-
JSP报错javax.servlet.jsp.JspException cannot be resolved to a type solution
-
javax.servlet.jsp.PageContext cannot be resolved to a type
-
javax.servlet.jsp.PageContext cannot be resolved to a type
-
JSP报错javax.servlet.jsp.JspException cannot be resolved to a type solution
-
javax.servlet.jsp.JspException cannot be resolved to a type
-
hibernate报错:JoinColumn cannot be resolved to a type
-
Hibernate中报错:ServiceRegistryBuilder cannot be resolved to a type
-
MyEclipse报错:Multiple annotations found at this line: - String cannot be resolved to a type解决方法实测