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

📄 chatroomlist.jsp

📁 网上聊天 很好很强大
💻 JSP
字号:
<%@ page language="java" import="java.util.*,net.chat.*" pageEncoding="utf-8"%>
<%@include file="chkSession.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>chatroon list</title>    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
<jsp:useBean id="chatList" class="net.chat.ChatRoomList"/>    
  </head>  
  <body background="D:\Tomcat 5.0\webapps\WebRoot\images\4.jpg">
   welcome:<span style="color:red"><%=session.getAttribute("_USER")%></span> hope you chatting happy here!
    <!-- form表单,让用户选择一个聊天房间提交给redirectChatRoom.jsp处理-->
    <form action="redirectChatRoom.jsp" method="post">
     <table border=0>
      <tr> 
        <td style="color:deeppink"><input type="radio" name="chatRoom" value="speak your feeling">speak your feeling
    <%//这里通过javaBean组件获取每个聊天室房间的在线人数%>
        [<%=chatList.countUser("speak your feeling")%>]people</td>
      </tr>
      <tr>
        <td style="color:blue"><input type="radio" name="chatRoom" value="making friends">making friends
          [<%=chatList.countUser("making friends")%>]people</td>
      </tr>
      <tr>
        <td style="color:red"><input type="radio" name="chatRoom" value="dragon inn" checked>dragon inn
         [<%=chatList.countUser("dragon inn")%>]people</td>
      </tr>
      <tr>
       <td><input type="submit" value="enter"></td>
      </tr>
     </table>
    </form>
  </body>
</html>

⌨️ 快捷键说明

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