`
文章列表
数据库连接池 datasource数据源对象是有 tomacat容器创建的 要想对其进行引用的话 利Javax.naming.Context 提供的接口来获得名称为x的数据源对象 context ctx=new InitialContext(); DataSource ds=ctx.looku("java:comp/env/x"); Connection con=ds.getConnection(); ---------------------------------------- 要想获得数据源对象的名称就必须在Tomcate下的c ...
dao  factory     public class DaoFactor {   public Object builddao(String name) {    Object classname=null; try {      classname= Class.forName(name).newInstance(); } catch (InstantiationException e) {  // TODO 自动生成 catch 块  e.printStackTrace(); } catch (IllegalAccess ...
import java.util.Arrays; public class maopao extends Thread{   public static int a=9;  String k=new String("");  @Override public void  run() {  // TODO Auto-generated method stub  System.out.println("进入线程");  super.run();  synchronized (k){     try {          this.sleep(6000);  ...
import java.util.Arrays; public class maopao implements Cloneable {  @Override protected Object clone() throws CloneNotSupportedException {  // TODO Auto-generated method stub   maopao a=null;          a=(maopao)super.clone();  return a; }  /**  * @param args  */   String name="beautiful gril ...
public class maopao {  /**  * @param args  */ public static void main(String[] args) {  // TODO Auto-generated method stub        int[] a ={70,22,23,45,26,88,11,77};          //实现降序排列        for(int i=0;i<a.length;i++){   // 从数组的第一位开始 ,循环数组的长度           for(int j=0;j<a.length-i-1;j++){         ...
Flex特效 flash   2009-07-22 16:23   阅读288   评论0   字号: 大大  中中  小小 这里面有许多特效很酷,希望对大家有帮助。 1.旋转 效果:http://www.alex-uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/ 代码:http://weblogs.macromedia.com/auhlmann/archives/DistortionEffects.zip 2.画布按钮 http://dougmccune.com/blog/2007/06/01/new- ...
goTag 自述     迫于对web页面记录集做分页处理,自己实现了这个用于分页的标签,与大家共享。     这是一个简单的web页面分页标签。通过这个标签可以将传入的记录集进行分页显示,你可以通过设置参数控制每页显示的记录条数。用户界面也较为简单实用,提供首页、尾页、上一页、下一页和直接跳转方式转向指定页面展示您所需要的记录集。 使用方法: 将go-1.0.jar放到你的WEB-INF/lib目录下 在页面引入标签 Jsp代码 <%@ taglib prefix="go" uri="http://www.zlex.org/tag/go&quo ...
Global site tag (gtag.js) - Google Analytics