您的位置:首页 > Web前端 > JavaScript

JSP中利用jstl标签获得当前路径的引用linked.jsp

2013-12-26 17:09 519 查看
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:set value="<%=path%>" var="path" />
<head>
<link rel="stylesheet" type="text/css"
href="${path}/jquery-easyui-1.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
href="${path}/jquery-easyui-1.3/themes/icon.css">
<script type="text/javascript"
src="${path}/jquery-easyui-1.3/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
src="${path}/jquery-easyui-1.3/jquery.easyui.min.js"></script>
<script type="text/javascript"
src="${path}/jquery-easyui-1.3/locale/easyui-lang-zh_CN.js"></script>
</head>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: