java jstl 1.1版本 使用方法

阅读更多

java jstl 1.1版本  使用方法

     在项目中使用jstl标签时,需要引入jstl 的jar包

使用方法:

1.   jstl  1.1版本

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

此时需要引入jstl 1.1.2.jar 和 standard 1.1.2.jar

如果缺少jar包,会报这样的错误

The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar

2. jstl 1.0 版本JSTL 1.0 的声明是:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

 

 

 

你可能感兴趣的:(jstl,版本,声明,jar包)