网页引入taglibs

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="scriptPath" value="${ctx}/js"/>
<c:set var="stylePath" value="${ctx}/styles"/>
<c:set var="imagePath" value="${ctx}/images"/>

 

posted @ 2012-02-06 15:08  cyjch  阅读(367)  评论(0编辑  收藏  举报