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

📄 _send_0handle__jsp.java

📁 《jsp编程起步》里面的所有源代码
💻 JAVA
字号:
/*
 * JSP generated by Resin 1.2.0 -- Wed Nov  1 07:35:54 PST 2000
 */

package _jsp._chat;
import java.io.*;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.*;
import java.util.*;
import chat.*;

public class _send_0handle__jsp extends com.caucho.jsp.JavaPage{
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, true, 8192, true);
    javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
    com.caucho.jsp.ByteWriteStream _jsp_raw_out;
    _jsp_raw_out = (com.caucho.jsp.ByteWriteStream) out;
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.http.HttpSession session = pageContext.getSession();
    javax.servlet.ServletContext application = pageContext.getServletContext();
    response.setContentType("text/html; charset=GB2312");
    try {
      _jsp_raw_out.write(_jsp_string0, 0, _jsp_string0.length);
      _jsp_raw_out.write(_jsp_string1, 0, _jsp_string1.length);
      chat.UserManage UserManage;
      UserManage = (chat.UserManage) pageContext.getAttribute("UserManage");
      if (UserManage == null) {
        UserManage = new chat.UserManage();
        pageContext.setAttribute("UserManage", UserManage);
      }
      _jsp_raw_out.write(_jsp_string0, 0, _jsp_string0.length);
      chat.ChatRoomManage ChatRoomManage;
      ChatRoomManage = (chat.ChatRoomManage) pageContext.getAttribute("ChatRoomManage");
      if (ChatRoomManage == null) {
        ChatRoomManage = new chat.ChatRoomManage();
        pageContext.setAttribute("ChatRoomManage", ChatRoomManage);
      }
      _jsp_raw_out.write(_jsp_string0, 0, _jsp_string0.length);
      chat.MessageManage MessageManage;
      MessageManage = (chat.MessageManage) pageContext.getAttribute("MessageManage");
      if (MessageManage == null) {
        MessageManage = new chat.MessageManage();
        pageContext.setAttribute("MessageManage", MessageManage);
      }
      _jsp_raw_out.write(_jsp_string0, 0, _jsp_string0.length);
      chat.Global Global;
      synchronized (application) {
        Global = (chat.Global) application.getAttribute("Global");
        if (Global == null) {
          Global = new chat.Global();
          application.setAttribute("Global", Global);
        }
      }
      _jsp_raw_out.write(_jsp_string1, 0, _jsp_string1.length);
      
	String msg=request.getParameter("message").trim();
	String id=request.getParameter("id");
	User user=UserManage.getUser(id,Global.UserTable);
	String chatroom=user.ChatRoom;

	if(msg.equals(""))
		response.sendRedirect("chat_send.jsp");


	String fromWho=new String("");
	String toWho=new String("");



	Message Msg=new Message();
	Msg=MessageManage.newMessage(id,chatroom,msg,"All","msg");
	Global.Message_Index++;
	MessageManage.addMessage(Msg,Global.MessageTable);

	response.sendRedirect("chat_send.jsp?i=refresh&id="+id); 


    } catch (java.lang.Throwable e) {
      pageContext.handlePageException(e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }

  private java.util.ArrayList _caucho_depends;
  private java.util.ArrayList _caucho_cache;
  private com.caucho.java.LineMap _caucho_line_map;

  public boolean _caucho_isModified()
  {
    if (com.caucho.util.CauchoSystem.getVersionId() != -1355223634)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.jsp.Depend depend;
      depend = (com.caucho.jsp.Depend) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public com.caucho.java.LineMap _caucho_getLineMap()
  {
    return _caucho_line_map;
  }

  public void init(com.caucho.java.LineMap lineMap,
                   com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    mergePath.addClassPath(getClass().getClassLoader());
    _caucho_line_map = new com.caucho.java.LineMap("_send_0handle__jsp.java", "/chat/send_handle.jsp");
    _caucho_line_map.add(1, 1);
    _caucho_line_map.add(1, 31);
    _caucho_line_map.add(4, 33);
    _caucho_line_map.add(5, 40);
    _caucho_line_map.add(6, 47);
    _caucho_line_map.add(7, 54);
    _caucho_line_map.add(9, 63);
    _caucho_depends = new java.util.ArrayList();
    _caucho_depends.add(new com.caucho.jsp.Depend(appDir.lookup("send_handle.jsp"), 993878240000L, 937L));
  }

  private static byte []_jsp_string1;
  private static byte []_jsp_string0;
  static {
    try {
      _jsp_string1 = "\r\n\r\n".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

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