摘要: 参考Struts2中Cookie的使用:https://www.cnblogs.com/batj/p/9109295.html 创建Session HttpSession se = request.getSession(); se.setAttribute("hello", "world"); 获取 阅读全文
posted @ 2018-05-30 10:31 呦,可以呦 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 设置Cookie 设置Cookie很简单,只要创建一个Cookie对象,添加到response中即可。 调用Cookie 调用Cookie也很简单,只要获取cookie集合,遍历即可。 Cookie coo[] = request.getCookies();//获取request中cookie集合 阅读全文
posted @ 2018-05-30 09:54 呦,可以呦 阅读(6501) 评论(0) 推荐(0) 编辑