JAVA数据库编程实例源码及其一些Java基本介绍
源代码在线查看: chat.jsp
聊天室--在线交流--
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);
%>
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);
%>
}
else out.print("尚未登录,进入用户登录");
%>