jstl标签库引入

使用jstl标签库时,出现如下问题,解决办法

严重: Servlet.service() for servlet [jsp] in context with path [/JSP_1] threw exception [The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application] with root cause
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

1、是否在web工程中WEB-INF/lib文件中引入jstl.jar和standard.jar包

2、引入jar包之后,仍然提示上述错误,可能是jar包与tomcat版本冲突问题,需要引入与tomcat版本对应的jar包,一般在apache-tomcat-7.0.47\webapps\examples\WEB-INF\lib这个目录中。

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。