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

📄 room.jsp

📁 this is jsp project.By using this project we can chat using jsp code.
💻 JSP
字号:
<html>
<%@ page import="jChatBox.Util.*,jChatBox.Chat.*" %>
<jsp:useBean id="UserProcessor" class="jChatBox.Service.UserProcessor" scope="application" />
<%
	jChatBox.Chat.ChatroomManager ChatroomManager = null;
	String jspDisplay = UserProcessor.execute(request,response,session,application);
	if (jspDisplay != null)
	{
		response.sendRedirect(response.encodeRedirectURL(jspDisplay));
	}
	else
	{
		ChatroomManager = jChatBox.Chat.ChatroomManager.getInstance();
	}
%>
<head>
<title>jChatBox</title>
</head>
  <%
	ChatroomUser cUser = (ChatroomUser) session.getValue(XMLConfig.USERSESSIONID);
	int dMode = -1;
	if (cUser != null)
	{
		int cID = cUser.getParams().getChatroom();
		try
		{
			if (ChatroomManager != null) dMode = ChatroomManager.getChatroom(cID).getParams().getDisplayMode();
		} catch (ChatException ce)
		  {
			/** Chatroom not found */
			response.sendRedirect(response.encodeRedirectURL(Conf.JSPUSERLOGIN));
		  }
	}
  	if (dMode == Conf.BUFFEREDFRAMED)
  	{%>
<frameset rows="0,*,68" frameborder="NO" border="0" framespacing="0">
  	  <frame name="content" src="<%= response.encodeURL("content.jsp?todo=refresh") %>" scrolling="NO" marginwidth="0" marginheight="0" frameborder="NO" noresize>
  	  <frame name="dbcontent" src="<%= response.encodeURL("content.jsp") %>" scrolling="AUTO" marginwidth="0" marginheight="0" frameborder="NO" noresize>
	  <frame name="text" scrolling="NO" noresize src="<%= response.encodeURL("text.jsp") %>" marginwidth="0" marginheight="0" frameborder="NO" >
</frameset>
  	<%}
  	else
  	{%>
<frameset rows="*,68" frameborder="NO" border="0" framespacing="0">
	  <frame name="content" src="<%= response.encodeURL("content.jsp?todo=refresh") %>" scrolling="AUTO" marginwidth="0" marginheight="0" frameborder="NO" noresize>
	  <frame name="text" scrolling="NO" noresize src="<%= response.encodeURL("text.jsp") %>" marginwidth="0" marginheight="0" frameborder="NO" >
</frameset>
  	<%}
  %>
<noframes>
<body bgcolor="#FFFFFF">
Frames support needed to run jChatBox !
</body>
</noframes>
</html>

⌨️ 快捷键说明

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