第一个问题: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
解决方法:在web.xml中配置如下信息
<jsp-config> <taglib> <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri> <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri> <taglib-location>/WEB-INF/x.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri> <taglib-location>/WEB-INF/fmt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri> <taglib-location>/WEB-INF/sql.tld</taglib-location> </taglib> </jsp-config>
第二个问题:org.apache.jasper.JasperException: /showfile.jsp(2,62) File "/WEB-INF/c.tld" not found接下来,你可能会遇到这个问题,出现这个问题的原因是项目没有找到c.tld文件解决方法:正确导入*.tld文件(导入方法,右键WEB-INF/lib,import,file system,然后选择*.tld所在路径),web.xml中配置的/WEB-INF/lib/META-INF/c.tld 需要与导入的*.tld路径一致
第三个问题 : org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV解决方法:正确导入jstl.jar与standard.jar,导入方法同第二个问题
关于jstl的几个问题
最新推荐文章于 2023-04-16 19:37:31 发布