?? changeroom.jsp
字號:
<%@include file="chkSession.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'changeRoom.jsp' starting page</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="styles.css">
-->
</head>
<jsp:useBean id="chatRoomObj" class="net.chat.ChatRoom"/>
<body>
<%
//chatRoomObj對象調用changRoom方法將用戶從剛才離開聊天房間的在線列表中刪除
chatRoomObj.changeRoom(session.getAttribute("_USER").toString(),session.getAttribute("_CHAT_ROOM").toString());
//頁面跳轉到聊天房間選擇頁面
response.sendRedirect("chatRoomList.jsp");
%> <br>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -