拦截器代码:HttpServletResponse response = ServletActionContext.getResponse();
Cookie cookie1 = new Cookie("a","b");
response.addCookie(cookie1);action中代码:HttpServletRequest request = ServletActionContext.getRequest();跟踪代码发现request中就没有“a”这个cookie请问为啥?
Cookie cookie1 = new Cookie("a","b");
response.addCookie(cookie1);action中代码:HttpServletRequest request = ServletActionContext.getRequest();跟踪代码发现request中就没有“a”这个cookie请问为啥?
解决方案 »
- hibernate mysql的一个问题
- spring 数据源总是找不到
- org.hibernate.LazyInitializationException: could not initialize proxy 这是什么错
- 请问一下Tomcat中设置的数据库连接池可不可以在SSH框架中使用~
- hibernate 一对多的集合查询 怎么能关联类的信息呢?
- 没有可用分了,struts一个最简单问题,感谢
- 有什么办法可以让系统启动的时候java自动设置一个256的虚拟机器内存
- 关于axis的问题2
- 各位, 我想做个OA,知不知哪儿可以参考呀,在线试用也OK
- 紧急问题,难者不会,会者不难!(xsl)
- ssh2怎么伪静态或URL重写
- The application has unexpectedly quit
前加一句代码:
cookie1.setPath("/");
然后再取试试。