chatclient.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html; charset=utf-8"
- import = "java.io.*"
- import = "cn.js.fan.util.*"
- import = "com.redmoon.chat.*"
- %>
- <%
- String mode = ParamUtil.get( request, "mode" );
- String param = ParamUtil.get( request, "param" );
- ChatClient cc = new ChatClient();
- String room = ParamUtil.get( request, "room" );
- String user = ParamUtil.get( request, "user" );
- String ret = "";
- if ( mode.equals("poll") ) {
- ret = cc.poll( user, room );
- //System.out.println( ret );
- out.println( ret );
- }
- if ( mode.equals("list") ) {
- ret = cc.pollList(user, room);
- out.println( ret );
- }
- if ( mode.equals("roomlist") ) {
- ret = "parseRooms('" + cc.roomlist(user, room) + "')";
- out.println( ret );
- }
- if ( mode.equals("Logout") ) {
- ret = cc.logout(user, room);
- out.println( ret );
- }
- %>