javax.servlet.jsp.JspException cannot be resolved to a type异常信息

导入工程的时候,发现导入进来出现javax.servlet.jsp.JspException cannot be resolved to a type异常信息,原因是在工程中少了jsp-api.jar 包。

解决办法:在工程中添加jsp-api.jar包,tomcat的安装目录中就有

右击项目---》Build Path ----》Configure Build Path ,点击Java Build Path,选中右侧Libraries,点击Add External  JARs选择tomcat安装目录下的jsp-api.jar包

猜你喜欢

转载自blog.csdn.net/libaowen609/article/details/81629521