?? main.jsp
字號:
<%@ 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="<s2:url value='css/style.css'/>">
</head>
<body>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="688" height="100%">
<tr height="20"><td><img src="images/default_t.jpg"></td></tr>
<tr><td background="images/default_m.jpg" valign="top"><jsp:include page="<%=mainPage%>"/></td></tr>
<tr height="26"><td><img src="images/default_e.jpg"></td></tr>
</table>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -