<%@page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="renderer" content="webkit">
<%/* 为移动设备添加 viewport*/%>
<meta name="viewport" content="width=device-width,user-scalable=no">
<base href='<%=basePath%>' target="_self"/>
<link id="switch-style" rel="stylesheet" type="text/css" href="./acwsui/easyui1.4/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="./acwsui/easyui1.4/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="./acwsui/css/acws.css"/>
<link rel="shortcut icon" type="image/ico" href="./favicon.ico"/>
<script>
var ctx="<%=AcwsInfo.getContextPath()%>";
var basePath="<%=AcwsInfo.getBasePath()%>";
</script>
<script src="./acwsui/easyui1.4/jquery.min.js"></script>
<script src="./acwsui/easyui1.4/jquery.easyui.min.js"></script>
<script src="./acwsui/datepicker/WdatePicker.js"></script>
<script src="./acwsui/acws.js"></script>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="renderer" content="webkit">
<%/* 为移动设备添加 viewport*/%>
<meta name="viewport" content="width=device-width,user-scalable=no">
<base href='<%=basePath%>' target="_self"/>
<link id="switch-style" rel="stylesheet" type="text/css" href="./acwsui/easyui1.4/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="./acwsui/easyui1.4/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="./acwsui/css/acws.css"/>
<link rel="shortcut icon" type="image/ico" href="./favicon.ico"/>
<script>
var ctx="<%=AcwsInfo.getContextPath()%>";
var basePath="<%=AcwsInfo.getBasePath()%>";
</script>
<script src="./acwsui/easyui1.4/jquery.min.js"></script>
<script src="./acwsui/easyui1.4/jquery.easyui.min.js"></script>
<script src="./acwsui/datepicker/WdatePicker.js"></script>
<script src="./acwsui/acws.js"></script>

本文介绍了一个Java Web项目的页面配置方式,包括了基本路径设置、视图元信息优化及多种样式表与脚本资源的引入方法。通过示例展示了如何在JSP中设置项目的基础路径,并引入必要的JavaScript库、CSS文件等前端资源。
839

被折叠的 条评论
为什么被折叠?



