@RequestMapping("login_xj")
    public ModelAndView login_xj(@RequestParam("nickname") String nickname,
	    @RequestParam("password") String password,
	    HttpServletRequest request, HttpServletResponse response) {
	ModelAndView mod = new ModelAndView();
	// 跳到当前页面
	mod.setViewName("login");

	TextHttpResponse res = new TextHttpResponse();
	try {
	    res = priceSysBiz.login22(request, nickname, password);
	} catch (Exception e) {
	    e.printStackTrace();
	}

	Hashtable<String, String> heads = res.getHeads();
	Enumeration<String> keys = heads.keys();
	
	// 设置cookie
	while (keys.hasMoreElements()) {
	    String key = (String) keys.nextElement();
	    String value = heads.get(key);
	    // response.setHeader(key,
	    // value);
	}

	String cookieStr = heads.get("Set-Cookie");
	String[] arr = StringUtils.split(cookieStr, "; ");
	if (StringUT.isEmpty(arr)) {
	    Dump.dump("已经登录了，客户端已经存在了cookie");
	    // mod.addObject("hascookie", "hasexits");
	} else {
	    for (int i = 0; i < arr.length; i++) {
		System.out.println(arr[i]);
		// Set-Cookie:JSESSIONID=706AD796C40DB743026FAD9963E7EC05;
		// Path=/xj
		if (arr[i].contains("JSESSIONID")) {
		    cookieStr = StringUtils.split(arr[i], "=")[1];
		    System.out.println(cookieStr);
		    mod.addObject("cookie", cookieStr);
		    break;
		}
	    }
	}

	Cookie cookie = new Cookie("JSESSIONID", cookieStr);
	cookie.setDomain("bbb.com");
	cookie.setPath("/");
	response.setHeader("Set-Cookie", "");
	response.addCookie(cookie);

	return mod;
    }