摘要: 实现产品是Hibernate需要的jar:hibernate-entitymanager-4.1.7.Final.jardist\lib\provided\jta-1.1.jarrequired\*JAR包列表如下: antlr-2.7.7.jar dom4j-1.6.1.jar hibernate-commons-annotations-4.0.1.Final.jar hibernate-core-4.1.7.Final.jar hibernate-entitymanager-4.1.7.Final.jar hibernate-jpa-2.0-api-1.0.1.Final.ja... 阅读全文
posted @ 2013-01-23 10:28 hwj2wj 阅读(412) 评论(0) 推荐(0) 编辑
摘要: hql分页/** * 使用hql语句进行分页查询操作 Description: * * @param hql * HQL语句 * @param startIndex * 索引数据的起始位置 * @param length * 索引的长度 * @return ORM对象的泛型集合 * @throws HibernateDaoException * 运行时异常 */ @SuppressWarnings("u... 阅读全文
posted @ 2013-01-22 17:29 hwj2wj 阅读(246) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> $(function (){ $("input[type='radio']").click(function (){ $("#daanqu>ol").children("#" +"ka"+ this.name).empty().append($(this).attr("value")); }); $("input[type='checkbox']&quo 阅读全文
posted @ 2013-01-17 16:59 hwj2wj 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 获取属性和设置属性如果要获取p元素的属性title,那么只需要给attr()方法传递一个参数,即属性名称。1var $para = $("p"); //获取<p>节点 2var p_txt = $para.attr("title"); //获取<p>元素节点属性title如果要设置<p>元素的属性title的值,也可以使用同一个方法,不同的是,需要传递两个参数即属性名称和对应的值。1$("p").attr("title", "your title"); //设 阅读全文
posted @ 2013-01-17 16:54 hwj2wj 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1.对properties文件的操作:public class PropUtil { private static Map<String, String> map = new HashMap<String,String>(); private PropUtil() { ResourceBundle prop = ResourceBundle.getBundle("config"); Enumeration<String> em = prop.getKeys(); while (em.hasMoreElements()) { ... 阅读全文
posted @ 2013-01-11 12:03 hwj2wj 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 基于浏览器的提示太丑了,易U开发了各种提示主要包括:alert,error,success,notice,confirm,prompt 等方法demo:http://www.yxsss.com/ui/demo 阅读全文
posted @ 2012-12-27 11:42 hwj2wj 阅读(451) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" conte 阅读全文
posted @ 2012-12-25 17:43 hwj2wj 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Myeclipse中修改servlet JSP等模板的方法打开Myeclipse的安装路径,在plugins目录下,找到com.genuitec.eclipse.wizards这个文件,双击打开(不要解压,直接打开就行),找到templates这个文件夹,就可以在里面修改相应的模板了。 阅读全文
posted @ 2012-12-25 14:59 hwj2wj 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 转:java.sql.PreparedStatement超级接口:Statement,Wrapper子接口:CallableStatement1、addBatch():将一组参数添加到此 PreparedStatement 对象的批处理命令中。2、clearParameters():立即清除当前参数值。 clearBatch():清除PS中已经打好的sql参数的包3、execute():执行 SQL 语句,该语句可以是任何种类的 SQL 语句。4、executeQuery(): 执行 SQL 查询,并返回该查询生成的 ResultSet 对象。5、executeUpdate():在此 Prep 阅读全文
posted @ 2012-12-24 16:45 hwj2wj 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 要自定义拦截器需要实现com.opensymphony.xwork2.interceptor.Interceptor接口package com.yjdgis.interceptor;import com.opensymphony.xwork2.ActionInvocation;import com.opensymphony.xwork2.interceptor.Interceptor;public class MyInterceptor implements Interceptor { @Override public void destroy() { } @Overr... 阅读全文
posted @ 2012-12-19 15:27 hwj2wj 阅读(119) 评论(0) 推荐(0) 编辑