index.jsp
来自「一个用java编写的购物网站系统」· JSP 代码 · 共 47 行
JSP
47 行
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!-- 这里引用css文件 -->
<link rel="stylesheet" type="text/css" href="css/my.css">
</head>
<body topmargin="0" background="images/bg.bmp">
<table width="80%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="94" colspan="2" align="center">
<!-- 引入head.jsp -->
<jsp:include flush="true" page="head.jsp"></jsp:include>
</td>
</tr>
<tr>
<td width="21%" height="185" align="center">
<jsp:include flush="true" page="left.jsp"></jsp:include>
</td>
<td width="73%" valign="top" align="center">
<jsp:include flush="true" page="right.jsp"></jsp:include>
</td>
</tr>
<tr>
<td height="62" colspan="2" align="center">
<jsp:include flush="true" page="tail.jsp"></jsp:include>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?