JSTL使用需加入两个jar包:jstl与taglibs

来源:互联网 发布:qq2012软件下载 编辑:程序博客网 时间:2024/06/15 18:28

转自http://blog.csdn.net/guoxu775/article/details/8213625

感谢!

JSTL使用需加入两个jar包:jstl与taglibs

 

[html] view plaincopy
  1. <dependency>  
  2.            <groupId>jstl</groupId>  
  3.            <artifactId>jstl</artifactId>  
  4.            <version>1.1.2</version>  
  5.        </dependency>  
  6.          
  7.        <dependency>  
  8.            <groupId>taglibs</groupId>  
  9.            <artifactId>standard</artifactId>  
  10.            <version>1.1.2</version>  
  11.        </dependency>  


 

其次引入对应的taglib

[html] view plaincopy
  1. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>  

0 0
原创粉丝点击