profile.jsp

来自「jsp博客网站系统做得还可以的需要的人可以」· JSP 代码 · 共 67 行

JSP
67
字号

<%@ page language="java" import="java.util.*,huc.blog.bean.*" pageEncoding="UTF-8"%>
<%@ page import="huc.blog.util.ParamUtils" %>
<%String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>

<%
	User user = (User)ParamUtils.getObjectAttribute(request, "user", null);
%>
<!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">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		
		<link rel="stylesheet" type="text/css" href="css/styles.css">

	</head>

	<body>
		<jsp:include page="common/header.jsp">
			<jsp:param name="userid" value="<%=user.getId()%>"/>
			<jsp:param name="spaceName" value="<%=user.getSpaceName()%>"/>
		</jsp:include>
		<br/>
		<br/>
		<table width="100%" height="100">
			<tr>
				<td width="40%"><img src="<%=user.getIcon()%>" width="400" height="360"/></td>
				<td valign="middle" align="center">
					<table>
						<tr>
							<td style="font-size: 20px;"><b>昵&nbsp;&nbsp;称:</b><%=user.getNickName()%></td>
						</tr>
						<tr>
							<td style="font-size: 20px;"><b>地&nbsp;&nbsp;区:</b><%=user.getCity()%></td>
						</tr>
						<tr>
							<td style="font-size: 20px;"><b>点&nbsp;&nbsp;击:</b><%=user.getSpaceHit()%></td>
						</tr>
						<tr>
							<td style="font-size: 20px;"><b>&nbsp;&nbsp;Email:</b><%=user.getEmail()%></td>
						</tr>
						<tr>
							<td height="*">&nbsp;</td>
						</tr>
					</table>									
				</td>
			</tr>
		</table>
		<br/>
		<br/>
		<jsp:include page="common/footer.jsp" />
	</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?