日期:2014-05-16 浏览次数:20448 次
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <c:set var="ctx" value="${pageContext.request.contextPath}" /> <% String baseurl = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+baseurl+"/"; request.setAttribute("baseurl",baseurl); request.setAttribute("basePath",basePath); %> <script type="text/javascript"> var CONTEXT_PATH = '<%=baseurl%>'; </script>