摘要: 1、读取配置文件获得连接 读取hibernate.cfg.xml配置文件,hibernate.cfg.xml文件放在Classpath下,使用下面的方式读入该文件 //Configuration 负责管理hibernate配置信息 Configuration config=new Configuration().configure(); //根据config建立S... 阅读全文
posted @ 2007-05-11 17:22 王永庆 阅读(885) 评论(0) 推荐(0) 编辑
摘要: (1)设置 在从服务器返回数据的同时,还要进行设置,使浏览器不会在本地缓存结果,response.setHeader("Cache-Control","no-cache");response.setHeader("pragma","no-cache"); XMLHttpRequest对象提供2个可以用来访问服务器响应的属性,一个是responseText将响应提供一个串,结... 阅读全文
posted @ 2007-05-11 13:59 王永庆 阅读(276) 评论(0) 推荐(0) 编辑