head.jsp 1.6 KB

1234567891011121314151617181920212223242526
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="init.jsp"%>
  3. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  4. <meta name="renderer" content="webkit">
  5. <meta http-equiv="Cache-Control" content="no-siteapp" />
  6. <link rel="shortcut icon" href="../favicon.ico" />
  7. <!-- 全局js -->
  8. <script src="../res/js/jquery.min.js" type="text/javascript"></script>
  9. <script src="../res/js/bootstrap.min.js" type="text/javascript"></script>
  10. <script src="../res/js/plugins/validate/jquery.validate.min.js" type="text/javascript"></script>
  11. <script src="../res/js/plugins/validate/messages_zh.min.js" type="text/javascript" ></script>
  12. <script src="../res/js/plugins/layer/layer.min.js" type="text/javascript"></script>
  13. <script src="../res/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
  14. <script src="../res/js/jquery.form.js" type="text/javascript"></script>
  15. <script src="../res/js/common.js" type="text/javascript"></script>
  16. <link rel="shortcut icon" href="../res/favicon.ico">
  17. <link href="../res/css/bootstrap.min.css" rel="stylesheet">
  18. <link href="../res/css/animate.css" rel="stylesheet">
  19. <link href="../res/css/style.css" rel="stylesheet">
  20. <link href="../res/css/font-awesome.css" rel="stylesheet">
  21. <c:set var="path" value="${pageContext.request.contextPath}" />
  22. <%
  23. String path = request.getContextPath();
  24. // 获得项目完全路径(假设你的项目叫MyApp,那么获得到的地址就是 http://localhost:8080/MyApp/):
  25. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  26. %>