?? chat.jsp
字號:
<%@ page errorPage="ErrorPage.jsp" %>
<%@ page contentType="text/html;charset=gb2312" %>
<HTML>
<HEAD>
<TITLE>
聊天室--在線交流--
<%
String chatroom;
chatroom=request.getParameter("chatroom");
if (chatroom.equals("1")) out.print("聊天室A");
if (chatroom.equals("2")) out.print("聊天室B");
int intChatroom=Integer.parseInt(chatroom);
%>
</TITLE>
</HEAD>
<jsp:useBean id="thisUser" scope="session" class="chatroom.oneUser" />
<jsp:useBean id="thischatroom" scope="application" class="chatroom.ChatRoom" />
<%
if (thisUser.getUserName() != null)
{thisUser.setPosition(chatroom);
thischatroom.addUserList(thisUser.getUserId(),thisUser.getUserName(),thisUser.getUserTime(),thisUser.getUserPosion(),thisUser.getUserSwjg(),thisUser.getUserSfks(),intChatroom);
thischatroom.addSpeaking("","","",thisUser.getUserName(),"","","red","system",intChatroom);
%>
<frameset rows="415,111" frameborder="YES" border="1" framespacing="1" cols="*">
<frameset cols="623,160" frameborder="YES" border="1" framespacing="1" rows="*">
<frame name="mychat" src="/mytest/jsp/mychat.jsp?isret=yes">
<frame name="user" src="/mytest/jsp/user.jsp">
</frameset>
<frame name="manage" scrolling="NO" src="/mytest/jsp/manage.jsp">
</frameset>
<%
}
else out.print("尚未登錄,進入<a href='/mytest/jsp/login.jsp'>用戶登錄</a>");
%>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -