首页>代码>java与pushlet实现bsim聊天>/bsIM/src/com/targsoft/engine/ManageListener.java
package com.targsoft.engine;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ManageListener extends HttpServlet{

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		
		super.doGet(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		resp.setCharacterEncoding("utf-8");
		String addName = req.getParameter("addUserName");
		String userId = UserSessionMap.getInstance().getSessionId(addName);
		if(userId!=null&&userId!=""){
			resp.getWriter().write(userId);
		}else{
			resp.getWriter().write("no-user");
		}
	}
	
}
最近下载更多
羁鸟念旧林  LV1 2021年6月14日
黄河之水天上来  LV2 2019年7月7日
2252536772  LV21 2019年6月21日
zCOFFEE  LV3 2019年3月31日
博博123  LV3 2017年8月1日
覃学谦  LV2 2017年7月5日
liuhaitie  LV14 2017年3月22日
guveis  LV2 2016年11月19日
ljcy122  LV1 2016年10月3日
lalalalala  LV13 2016年6月21日
最近浏览更多
cksndh  LV4 2023年8月16日
yybb7435100  LV2 2023年8月7日
 LV1 2021年11月24日
13798956075  LV1 2021年10月8日
羁鸟念旧林  LV1 2021年6月14日
年轻的人  LV1 2021年6月12日
1005948011  LV7 2021年6月1日
xser3366  LV5 2021年4月13日
2251937068  LV5 2021年3月17日
eawdas  LV5 2020年12月27日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友