eclipse中的JSP页面引用jstl
2017-10-19 本文已影响44人
莫失丿莫忘
1.将jstl.jar和standard.jar包放入WEB-INF\lib下

2.在web.xml文件中配置taglib信息(jstl1版本上则不需在web.xml中配置)
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
<taglib-location>/WEB-INF/tlds/c-rt.tld</taglib-location>
</taglib>
</jsp-config>
3.在JSP页面添加taglib指令
在jsp页面中使用<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
常用标签介绍
可参考:http://blog.csdn.net/qq_25827845/article/details/53311722