- 浏览: 362390 次
- 性别:
- 来自: 北京
最新评论
-
zzy2011266:
以上是特殊情况, 正确的方式是打开windowsshowVi ...
Android 出现 Your project contains errors, please fix them 。。。。 -
小奶牛:
BFGFG[b][/b]
PHP计算字符串长度 -
小奶牛:
[b][/b]YTYTY
PHP计算字符串长度 -
yuankunliu:
这样处理ppt里边的文本框在图片中有边框,知道怎么去掉不请问? ...
java转换ppt为图片 -
vtrtbb:
哦,我试试
简单的JS分页代码
文章列表
先定义一个接口,主要包括CRUD几个功能
public interface BaseDAO {
public void save(Object poObject);
public void detacheUpdate(Object poObject);
public <T>T load(Class<T> poClass, Object keyObject);
public void delete(Object poObject);
}
DAOFactory:
import java.lang.reflect.Constructor;
import java ...
- 2009-03-17 23:22
- 浏览 1185
- 评论(0)
public class ThreadPool {
private final ExecutorService POOL;
public ThreadPool(int threadNumber) {
POOL = Executors.newFixedThreadPool(threadNumber);
}
public void runThread(int i) {
POOL.execute(new myThread(i));
}
public static void main(String[] args) {
ThreadPool thread = new Threa ...
- 2009-03-16 23:03
- 浏览 885
- 评论(0)
public class DBConnectionManager {
private final static DBConnectionManager instance=new DBConnectionManager();
private DBConnectionPool pool;
public static DBConnectionManager getInstance() {
return instance;
}
public Connection getConnection() throws SQLException{
return pool ...
- 2009-03-16 14:49
- 浏览 832
- 评论(0)
模拟一个java的线程池,虽然jdk1.5以后已经存在。
import java.util.LinkedList;
public class AppThreadPool {
private int poolSize;
private LinkedList queue;
public AppThreadPool(int poolSize) {
this.poolSize = poolSize;
queue = new LinkedList();
FileWorker[] Pool = new FileWorker[poolSize];
for (int i = 0; i ...
最近在研究mule,感觉比apache的serviceMix好用一些。
看到je上对于mule有好多例子,下载了mule 按着examples中的hello写,感觉比serviceMix轻松的多。
- 2009-03-13 17:53
- 浏览 2658
- 评论(2)
<h:commandLink actionListener="#{yhglBean.delYh}">
public void delYh(ActionEvent ev) {
UICommand cl =(UICommand) (actionEvent.getSource());
String val = (String) (((UIParameter)(cl.getChildren().get(1))) .getValue());
}
<property-name> scxzID</property-name>
...
- 2009-02-18 12:05
- 浏览 951
- 评论(0)
许多时候需要用到标签解析:
String templeHtml = "<ul>{Tag:type=体育&pagesize=5}</ul><ul>{Tag:type=娱乐&pagesize=5}</ul>";
String htmlCode = "";
String beginTag = "{Tag:";
String endTag = "}";
boolean isFind = false; ...
- 2009-02-18 12:01
- 浏览 2217
- 评论(0)