📄 changeroom.jsp
字号:
<%@include file="chkSession.jsp"%>
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<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 + -