上一页 1 ··· 23 24 25 26 27

2009年10月16日

Hibernate中Criteria的完整用法

摘要: 转自:http://www.360doc.com/content/090313/10/26262_2794855.htmlcriteria 英[kraɪˈtɪərɪə]美[kraɪˈtɪrɪə] 标准 1,Criteria Hibernate 设计了 CriteriaSpecification 作为 Criteria 的... 阅读全文

posted @ 2009-10-16 14:28 izumi 阅读(112383) 评论(1) 推荐(10)

2009年10月15日

setContentType和setCharacterEncoding

摘要: request.setCharacterEncoding()是设置从request中取得的值或从数据库中取出的值 response.setContentType("text/html;charset=gb2312")是设置页面中为中文编码 前者是设置动态文字(参数,数据库),后者设置页面静态文字 response.setContentType指定 HTTP 响应的编码,同时指定了浏览器显示的编... 阅读全文

posted @ 2009-10-15 23:03 izumi 阅读(514) 评论(0) 推荐(0)

struts2中文乱码

摘要: 在spring.jar包的org.springframework.web.filter包下有个CharacterEncodingFilter.java 把spring.jar放进工程的lib里,然后在web.xml文件中<servlet>元素前加以下代码 注意要把CharacterEncodingFilter放在其他过滤器之前声明。 <!--著名CharacterEncodi... 阅读全文

posted @ 2009-10-15 23:01 izumi 阅读(1825) 评论(0) 推荐(0)

Hibernate的evict方法和clear方法的区别

摘要: 摘自百度知道:http://zhidao.baidu.com/question/63663640.html问:先创建一个Student,然后调用session.save方法,然后再调用evict方法把Student对象清除出缓存,再提交事务, 可是会报错:Exception in thread "main" org.hibernate.AssertionFailure: possible nont... 阅读全文

posted @ 2009-10-15 22:59 izumi 阅读(17681) 评论(1) 推荐(2)

上一页 1 ··· 23 24 25 26 27

导航