运行时出现`java.lang.ClassNotFoundException: org.apache.jsp.index_jsp`报错是因为:我们在jsp页面中使用了jstl标签,但是没有引入jstl相关的jar包。
在运行项目时发现有后端错误,如图:
发现jsp页面中使用的jstl标签有警告提示:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
发现项目的lib文件夹中没有引入jstl相关的jar包,就去官网上下载了这两个包:
网址:Apache Taglibs - Apache Standard Taglib: JSP[tm] Standard Tag Library (JSTL) implementations
然后导入到项目的lib目录中,重新运行
就好啦~
文章来源:https://uudwc.com/A/rZ3b0
文章来源地址https://uudwc.com/A/rZ3b0