我学习Java的主要手段之一就是不断学习新的原代码,因为它会给你带来灵感。Free java code For you
开源的文件图片管理库
[
2010/04/14 22:12 | by fubin ]
2010/04/14 22:12 | by fubin ]
cs结构下服务器查询数据库基础框架
[
2010/04/08 09:44 | by fubin ]
2010/04/08 09:44 | by fubin ]
极其简单的上传(简单却非常有用)
[
2010/03/23 09:01 | by fubin ]
2010/03/23 09:01 | by fubin ]
Google出的一个非常完善的身份证(中国)解析模块
[
2010/03/10 12:36 | by fubin ]
2010/03/10 12:36 | by fubin ]
Velocity 实例
[
2010/02/12 22:20 | by fubin ]
2010/02/12 22:20 | by fubin ]
Velocity是一个基于java的模板引擎(template engine)。它允许任何人仅仅简单的使用模板语言(template language)来引用由java代码定义的对象。 当Velocity应用于web开发时,界面设计人员可以和java程序开发人员同步开发一个遵循MVC架构的web站点,也就是说,页面设计人员可以只关注页面的显示效果,而由java程序开发人员关注业务逻辑编码。Velocity将java代码从web页面中分离出来,这样为web站点的长期维护提供了便利,同时也为我们在JSP和PHP之外又提供了一种可选的方案。 Velocity的能力远不止web站点开发这个领域,例如,它可以从模板(template)产生SQL和PostScript、XML,它也可以被当作一个独立工具来产生源代码和报告,或者作为其他系统的集成组件使用。Velocity也可以为Turbine web开发架构提供模板服务(template service)。
JSP直接读取XMl数据的方法
[
2009/12/29 09:42 | by fubin ]
2009/12/29 09:42 | by fubin ]
String to Boolean
[
2009/12/13 22:49 | by fubin ]
2009/12/13 22:49 | by fubin ]
String strBoolean = "true";
boolean theValue = Boolean.parseBoolean(strBoolean);
boolean theValue = Boolean.parseBoolean(strBoolean);
java正则表达式查找文字
[
2009/11/25 23:52 | by fubin ]
2009/11/25 23:52 | by fubin ]
//this program extracts any word that starts with sc
public static void main(String[] args) {
int index = 0;
String quote = "www.cuajva.com is the best at computer website";
Pattern p = Pattern.compile("[Ss]c\\w*");
Matcher m = p.matcher(quote);
while(m.find() == true){
index = m.start();
System.out.println("Found: " + m.group() + " Index: " + index);
}
}
public static void main(String[] args) {
int index = 0;
String quote = "www.cuajva.com is the best at computer website";
Pattern p = Pattern.compile("[Ss]c\\w*");
Matcher m = p.matcher(quote);
while(m.find() == true){
index = m.start();
System.out.println("Found: " + m.group() + " Index: " + index);
}
}



下载文件