摘要: 1 package util; 2 3 import org.hibernate.HibernateException; 4 import org.hibernate.Session; 5 import org.hibernate.cfg.Configuration; 6 7 /** 8 * Configures and provides access to Hibernate sessions, tied to the 9 * current thread of execution. Follows the Thread Local Session 10 * ... 阅读全文
posted @ 2012-08-16 15:43 欢歌911 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1 <html> 2 <head> 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 <title>Insert title here</title> 5 <script type="text/javascript" src="js/prototype-1.6.0.3.js"></script> 6 <script type=&quo 阅读全文
posted @ 2012-08-16 14:40 欢歌911 阅读(2167) 评论(0) 推荐(0) 编辑
摘要: 1、什么是url编码?浏览器对链接中的特殊字符(非ascii字符以及一些标点符号等)会进行编码处理。中文就需要编码。2、链接当中包含了中文参数,浏览器会对中文参数进行编码,编码依据打开该页面时的编码。如果请求发送方式是get方式,不能够使用request.setCharacterEncoding()!解决方式一:new String(str.getBytes("iso8859-1"),"编码");注意,编码要看浏览器打开页面时的编码。解决方式二:在tomcat conf\server.xml找到<Connector port="8080& 阅读全文
posted @ 2012-08-16 13:52 欢歌911 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 1、ajax asynchronous javascript and xml,为了解决传统的 web应用当中“提交-等待-提交”模式而产生的一种 技术,其实质是通过javascript调用浏览器内置的一个 特殊对象(XmlHttpRequest)向服务器异步发送请求, 服务器以xml或者文本的形式返回数据给XmlHttpRequest, ,然后,通过javascript从XmlHttpRequest中获取数据, 更新页面。在整个过程当中,页面无刷新。2、ajax编程 step1 获得XmlHttpRequest对象。 ie与其它浏览器不一样,其它浏览器都可以用 new XmlHttpReque 阅读全文
posted @ 2012-08-16 13:42 欢歌911 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 1.什么是Ajax,工作原理(了解)1.全称Asynchronous JavaScript And XML,异步的JavaScript和XML(了解)2.不是新技术,是前期技术的组合应用。包含XMLHttpRequest、HTML/XHTML,CSS,JavaScript,XML,DOM,XSLT(熟练掌握)3.工作原理a.以XMLHttpRequest为核心,实现发送请求和响应接收、处理b.以XML为数据传输格式(发请求和接收响应数据时)c.以DOM技术解析XML数据、HTML元素d.以HTML/XHTML、CSS控制页面显示e.以JavaScript语言为基础,将各个元素整合2.如何使用, 阅读全文
posted @ 2012-08-16 12:03 欢歌911 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 闲来无聊自己整合了一下这几个框架,大家可以参考学习项目结构:web.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd 阅读全文
posted @ 2012-08-16 10:25 欢歌911 阅读(2732) 评论(1) 推荐(1) 编辑