首页 > 代码库 > jstl标签库引入

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这个目录中。

 

jstl标签库引入