JSP博客网站系统,首页源代码index.jsp
<%@ page language="java" 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>鍗氬鈥斺旈椤?/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">
<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
<CENTER>
<jsp:include page="common/indexheader.jsp" />
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#E4EDFB">
<th width="400" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD colspan="2" align="center" valign=middle><IMG src="images/logo_1.jpg"></TD>
</TR>
<TR height="50">
<TD class="padL25" align="right"> 宸茬粡鏈夊崥瀹㈢┖闂翠簡锛?>> </TD>
<TD nowrap align="left" valign="left"> <INPUT type="Button" name="loginButton" value="鐧诲綍" class="signinbtn" onclick="location.href='login.jsp'" />
</TD>
</TR>
<TR height="50">
<TD class="padL25" valign="right" align="right"> 杩樻病鏈夊崥瀹㈢┖闂达紵>>> </TD>
<TD nowrap align="left" valign="left"> <INPUT type="Button" name="regButton" value="娉ㄥ唽" class="signinbtn" onclick="location.href='reg.jsp'" />
</TD>
</TR>
</table></th>
<th width="47"> </th>
<th width="353" valign="top">
<TABLE>
<TR>
<td> <jsp:include page="common/spacelist.jsp">
<jsp:param name="usersType" value="newusers"/>
<jsp:param name="listName" value="鏈鏂版洿鏂?/>
</jsp:include>
</td>
</tr>
<tr>
<td> <jsp:include page="common/spacelist.jsp">
<jsp:param name="usersType" value="hotusers"/>
<jsp:param name="listName" value="鏈鍙楁杩?/>
</jsp:include>
</td>
</TR>
</TABLE>
</th>
</tr>
</table>
</CENTER>
<jsp:include page="common/footer.jsp" />
</body>
</html>