没具体试过
不过,偶觉得,肯定可以做到
自己写个Listener还不行?
不过,偶觉得,肯定可以做到
自己写个Listener还不行?
解决方案 »
- jspsmartupload上传文件问题
- java用流方式下载,怎么处理下载文件的后缀名?
- java.lang.NoSuchMethodError异常
- tomcat一闪而过!命令行提示CATALINA_HOME设置错误什么的!
- eclipse+lomboz3.2.2+jboss4.0建WebService应用时碰到的初级问题
- spring中出现乱码问题,急!
- myeclipse new->project中怎么没有client project????
- jbpm是否可以在websphere上应用?
- 我form的属性(定义的字符串正常,定义的整形)在页面显示出来为0,怎样把页面中的0给取消?
- 刚开始学习程序设计的朋友在这里看看!!!
- MDA的java开发工具可以让J2EE的开发更简单
- 想学J2EE,不知道需要还要什么开发环境,各位能不能给我讲解下吗?
同时监听session,一旦session过期,
就把数据库里面锁定的用户接触锁定
用HttpSessionListener 不是 HttpSessionAttributeListener1、用户非正常退出。如掉线,死机。
同 2、session过期。3、服务器当机。
没办法为什么要用session判断
把用户id放到application里就可以了
<security-constraint id="SecurityConstraint_1072421162953">
<web-resource-collection id="WebResourceCollection_1072421162969">
<web-resource-name>commonUsers</web-resource-name>
<description>common user</description>
<url-pattern>/yh/welcome/main.do</url-pattern>
<url-pattern>/yh/yhdc/bpdcAction.do?action=view</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>HEAD</http-method>
<http-method>TRACE</http-method>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
<http-method>OPTIONS</http-method>
</web-resource-collection>
<auth-constraint id="AuthConstraint_1072421162970">
<description></description>
<role-name>yhxtglyh</role-name>
</auth-constraint>
</security-constraint>
但是在我上面一个带参数的连接是无效的,我没有试验成功,正在郁闷。但是不带参数就可以限制其权限了。因为我的action类中是用参数判定操作的,郁闷呀,要不是,就要全部改程序了