forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndexTemp.jsp
More file actions
30 lines (28 loc) · 1.14 KB
/
IndexTemp.jsp
File metadata and controls
30 lines (28 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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>