jsp資源引入的問題

來源:互聯網
上載者:User

標籤:des   style   blog   http   io   ar   color   使用   sp   

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%    String path = request.getContextPath();    String basePath = request.getScheme() + "://"            + request.getServerName() + ":" + request.getServerPort()            + path + "/";%><!DOCTYPE html><html lang="en"><head>    <!--IE=edge告訴IE使用最新的引擎渲染頁面-->    <meta http-equiv="X-UA-Compatible" content="IE=edge">    <!-- 設定網頁全螢幕大小為裝置的大小-->    <meta name="viewport" content="width=device-width, initial-scale=1">    <title>登陸</title>    <meta name="description" content="登陸" />    <meta name="keywords" content="168,商城" />    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">    <link rel="stylesheet" type="text/css" href="<%=basePath%>resource/css/bootstrap.css">    <link rel="stylesheet" type="text/css" href="<%=basePath%>resource/css/common.css">    <style type="text/css">body {    background: #F7F7F6 url(<%=basePath%>resource/image/body-bg.jpg)        repeat-y fixed 0 0;}</style></head><body>    <script src="<%=basePath%>resource/js/jquery-2.1.1.js"></script>    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>    <script src="<%=basePath%>resource/js/bootstrap.js"></script>    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>    <jsp:forward page="WEB-INF/page/register.jsp"></jsp:forward></body></html>

資源檔是放在webroot下的resource檔案下

jsp資源引入的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.