⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showmsg.jsp

📁 法改革开放的离开概率地方了过了的开始了开放个蒂法个饭店抒发个
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"
	import="biz.*,
			entity.*"%>
<%
response.setCharacterEncoding("GBK");
User       loginUser  = (User)session.getAttribute("loginUser");             // 从session中获得登录用户
if(loginUser==null){                                                         // 未登录跳转
    response.sendRedirect("index.jsp");
    return;
}
MessageBiz messageBiz = new MessageBiz();                                    // 获得短消息业务对象
int        msgId     = 0;
try{
	msgId = Integer.parseInt(request.getParameter("messageId"));  // 从请求中获取短信id
}catch(Exception e){
	response.sendRedirect("listMsg.jsp");
	return;
}
Message    message    = messageBiz.findmessage(msgId);                        // 创建存放消息列表的对象
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>阅读短消息</title>
	<link rel="stylesheet" type="text/css" href="style/style.css">
  </head>

  <body>
  <div align="center">
  	<%--  用户信息  --%>
  	<div style="width:500px">
	   	当前用户 <%=loginUser.getName() %>
	   	<a href="doLogout.jsp">[登出]</a>
	   	<a href="post.jsp">[发短消息]</a>
	   	<a href="listMsg.jsp">[我的短消息]</a>
	</div>

  	<h2 align="left" style="width:400px">阅读短消息</h2>
  	
    <%-- 短消息 --%>
    <div align="left" style="width:400px">

    	<div class="t">
    		<div style="background-color:#d4eff7">&nbsp;来自:<%=message.getSendUname() %></div>
    		<div style="background-color:#f3f8ef"><br/>&nbsp;&nbsp;<%=message.getNote() %></div>
    		<div style="background-color:#f3f8ef" align="right">
    			<a href="post.jsp?receiveUname=<%=message.getSendUname() %>">[回复]</a>
    			<a href="doDelete.jsp?msgid=<%=message.getId() %>">[删除]</a>
    		</div>
    		<div align="right" class="gray">[<%=message.getPostTime().substring(0,19) %>]</div>
    	</div>
    	
    </div>
  </div>
  </body>
</html>

⌨️ 快捷键说明

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