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

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

感谢!

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

 

  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

  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"%>  

posted @ 2015-10-14 14:26  cn_wk  阅读(246)  评论(0)    收藏  举报