`
dd350356750
  • 浏览: 74970 次
  • 性别: Icon_minigender_1
  • 来自: 怀化
社区版块
存档分类
最新评论
文章列表
 
分页的核心代码 package com.crm.dao; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Example; import org.hibernate.criterion.MatchMode; //hibernate 自动创建的一个工厂类 import com.crm.util.HibernateSessionFactory; public class SplitD ...

oracle 简单应用

    博客分类:
  • java
 

sql的一些应用

    博客分类:
  • java
 
dom 解析xml package com.xmlparse; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class DomXmlParse { private String getFile() { String path = ...
...
...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <script type="text/javascript"> //只能输入0-9的数字 function numbercheckKey(key) { if(!(key>=96 && key<=105 || key>=48 && ...
<script type="text/javascript"> function checkData() { var number = document.form1.number.value; var rexNumber = number.search("^\\d+(\\.\\d+)*$"); alert(rexNumber); if(rexNumber != 0) { alert("请输入一个数字"); return false; } var e ...
public class Test2 { public static void main(String[] arg) { int[] nums={21,25,11,32,12,35,55,77,66,88}; new Test2().doubleSort(nums,"asc"); for (int i = 0; i<nums.length; i++){ System.out.println (nums[i]); } } //冒泡排序 public void m ...
表 3.3. Hibernate配置属性 属性名 用途 hibernate.dialect 一个Hibernate Dialect类名允许Hibernate针对特定的关系数据库生成优化的SQL. 取值 full.classname.of.Dialect hibernate.show_sql 输出所有SQL语句到控制台. 有一个另外的选择是把org.hibernate.SQL这个log category设为debug。 eg. true | false hibernate.format_sql 在log和console中打印出更漂亮的SQL。 取值 true | false ...
validation.xml 编写 <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"> <form-validation> <formset> & ...
/* * Generated by MyEclipse Struts * Template path: templates/java/JavaClass.vtl */ package com.dd.struts.action; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import or ...
package com.dd.struts.actions; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMessage; public class ExtForm extends ActionForm { protected GenericValidator gv = new GenericValidator(); /* * ...
package com.dd.struts.extaction; import java.io.FileWriter; import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.s ...
Global site tag (gtag.js) - Google Analytics