indextemp.jsp
来自「一个简单博客的软件项目,可以给初学者一个引导」· JSP 代码 · 共 30 行
JSP
30 行
<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/struts-tags" prefix="s2"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String mainPage=(String)request.getAttribute("mainPage");
if(mainPage==null||mainPage.equals(""))
mainPage="default.jsp";
%>
<html>
<head>
<title>都市信息网</title>
<base href="<%=basePath%>">
<link type="text/css" rel="stylesheet" href="css/style.css">
</head>
<body background="images/back.gif">
<center>
<table border="0" width="920" cellspacing="0" cellpadding="0" bgcolor="white">
<tr><td colspan="2"><jsp:include page="top.jsp"/></td></tr>
<tr>
<td width="230" valign="top" align="center"><jsp:include page="left.jsp"/></td>
<td width="690" height="400" align="center" valign="top" bgcolor="#FFFFFF"><jsp:include page="<%=mainPage%>"/></td>
</tr>
<tr><td colspan="2"><%@ include file="end.jsp" %></td></tr>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?