当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 防止重复在线,统计在线人数通常由三种办法:1.通过数据库的记录 2.使用ServletContext类型的application3.采用session.第一种做法较简单但会给数据库造成负担.第二种做法还没去实现.:)本文实现了采用session的做法,基本思想就是正常登陆的时候建立一个sess...
 

 

    摘要: http://www.sina.com.cn 2004年09月08日 10:38 天极yesky   文/leisureful   drivermanager 类是 jdbc 的管理层,作用于用户和驱动程序之间。它跟踪可用的驱动程序,并在数据库和相应驱动程序之间建立连接。另外,drivermanager 类也处理诸如驱动程序登录时间限制及登录和跟踪消息的显示等事务。   对于简单的应用程序,一般......
    摘要: chapter 6. creating a cmp entity beanthis chapter covers how to create a container managed persistence (cmp) ejb component. we will create two cmp beans, item and supplier as shown below. the item be......


jsp 下实现防止重复在线,统计在线人数的办法

防止重复在线,统计在线人数通常由三种办法:1.通过数据库的记录 2.使用servletcontext类型的application

第一种做法较简单但会给数据库造成负担.第二种做法还没去实现.:) 【程序编程相关:一个Hibernate的例子

3.采用session. 【推荐阅读:WebLucene 项目导读

代码如下: 【扩展信息:Turbine表单处理中的中文

本文实现了采用session的做法,基本思想就是正常登陆的时候建立一个session记录登陆名字,此时激发监听器.

1.登陆时假设登陆名logininfo[0],建立session记录登陆名字.


...   下一页
    摘要: chapter 8. creating web clientsthis chapter describes how to create web clients in the client tier/presentation tier to access or otherwise communicate with the business tier. servlets and jsp pages ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE