去的时候就session timeout了,就异常报错了啊.
哎,看来只有抓异常来判断了..........
哎,看来只有抓异常来判断了..........
解决方案 »
- jersey 和spring集成,不能注入service
- 求助:IE上直接打开excel文档出现乱码?
- 各位大侠们 我用了acegi框架登陆 做了个验证码 当我输入正确的验证码时他还会报错 希望大侠们帮帮忙 !谢谢了 !急。。。。
- 下拉菜单如何刷新
- struts+spring+ibatis事务管理问题?急急急1
- 用<html:link>传参,如何在另外一个页面得到
- JSF资源绑定问题
- 请达人指点江山—网页实现即时通信中关于同步数据的问题(100)
- 又来菜鸟问题
- 关于针对数据库的操作,为什么我在处理删除时还会出现此记录,但重新刷新页面后删除的记录就没有了
- *****用Weblogic做的JSP网页怎样在两台机器上互连******
- JSP访问oracle数据库问题
或者,取它的某个标志性的属性,取到NULL,就是失效了。
if it returns null, there is no valid session
to:Diesang 不错的方法.
public HttpSession getSession(boolean create)Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session.
If create is false and the request has no valid HttpSession, this method returns
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
null.
~~~`
To make sure the session is properly maintained, you must call this method before the response is committed.