標籤: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資源引入的問題