日期:2014-05-18  浏览次数:20682 次

使用core标签时需要导入哪些jar包呢?
使用core标签时需要导入哪些jar包呢?

------解决方案--------------------
配置:
../WEB-INF/lib/下放入:
jstl.jar
standard.jar

../WEB-INF/tlds/下放入:
c.tld

../WEB-INF/web.xml中添加定义:
<jsp-config>
  <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
  </taglib>
</jsp-config>

使用:
在要使用的html或jsp页面添加:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
------解决方案--------------------
jstl.jar
------解决方案--------------------
记得down 1.1的那个,别down 1.0 的那个。