《jsp编程起步》里面的所有源代码
源代码在线查看: send_handle.jsp
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);
%>