本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告
 本博客在此声明所有文章均为转摘,只做资料收集使用。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:
日志总数:1304
评论数量:2242
留言数量:5
访问次数:7589453
建立时间:2006年5月29日




[J2SE]深入探讨Java的类加载机制
软件技术

lhwork 发表于 2006/8/26 13:10:10

Java 语言是一种具有动态性的解释型编程语言,当指定程序运行的时候, Java 虚拟机就将编译生成的 . class

阅读全文(1663) | 回复(0) | 编辑 | 精华 | 删除
 


[Java Open Source]OpenLDAP快速上手
软件技术

lhwork 发表于 2006/8/26 13:07:24

OpenLDAP 快速上手    Ben 的项目里面要用到 OpenLDAP, 我的项目里面也要用到 LDAP, <


阅读全文(1904) | 回复(0) | 编辑 | 精华 | 删除
 


[设计模式]单例模式陷阱
软件技术

lhwork 发表于 2006/8/26 13:05:02

         今天去jdon,看了它的设计研究栏目,bang有几篇评论单例模式的文章,声称“Singleton is evil”(见http://www.jdon.com/jive/article.jsp?forum=91&thread=17578),并且引用几篇外文页面佐证自己的观点,其中有一篇文章更是说,单例不仅不是一种模式,而是一种反模式。
        下面我谈谈我对单例模式的看法。逐一分析单例模式的陷阱,帮助大家正确使用单例模式。
(1) 陷阱一:调用函数的性能瓶颈
        在c++中,单例只有一种实现

阅读全文(1523) | 回复(0) | 编辑 | 精华 | 删除
 


[Prototype(Ajax)]关于基于prototype的AJAX应用
软件技术

lhwork 发表于 2006/8/25 10:58:07

通过这个JS类库,将很容易的应用AJAX技术
ajax.updater应用
new Ajax.Updater('id',"url",{options});
id:你要更新的目标id
url:你要执行的操作,也可以是cgi
options:
属性 类型 默认 描述
method Array 'post'

阅读全文(10777) | 回复(4) | 编辑 | 精华 | 删除
 


[Prototype(Ajax)]prototype.js开发笔记
软件技术

lhwork 发表于 2006/8/25 10:56:54

覆盖版本 1.3.11. Prototype是什么?或许你还没有用过它, prototype.js 是一个由Sam Stephenson写的JavaScript包。这个构思奇妙编写良好的一段兼容标准的一段代码将承担创造胖客户端, 高交互性WEB应用程序的重担。轻松加入Web 2.0特性。如果你最近

阅读全文(3530) | 回复(0) | 编辑 | 精华 | 删除
 


[Grails]Grails
软件技术

lhwork 发表于 2006/8/24 9:54:46

下载安装 准备 使用Grails前,您需要如下步骤: 安装java1.4或更高版本,并设置JAVA_HOME到安装路径。 步骤 [下载] Grails最近发布版本解压文件到选择路径设置环境变量GRAILS_HOME,指向解压后文件路径。(如 Windows上C:\grails 、Unix上 ~/grails )添加Grails中的bin目录到PATH环境变量 (如 Windows上 %GRAILS_HOME%\bin 、 Unix上$GRAILS_HOME/bin)在命令行输入"grails",若显示出帮助信息,您就可以使用Grails了。

阅读全文(4293) | 回复(0) | 编辑 | 精华 | 删除
 


[Java Open Source]谈谈Grails,以及Ruby on rails 
软件技术

lhwork 发表于 2006/8/24 9:49:34

Grails顾名思义groovy on rails,一个用groovy模仿Ruby on rails的project,昨天刚刚发布了0.1版本,0.2版本正在紧锣密鼓的开发中。今天花了点时间看了看grails的文档,基本上完全模仿 ruby on rails的开发模式和架构。grails底层实际上使用的是Hibernate3.1/Spring IoC/Spring MVC/Sitemesh/Dynamic Tag/AJAX(prototype, rico, YAHOO.js)这样的架构,但是通过groovy对底层进行了封装,提供了简单的,高度近似rails的编程模型,同时使用annotation和 CoC方式消除了XML配置文件的存在。

Groovy了解了一下,最近三个月开发变得非常活跃,似乎要在JavaOne上面有所动作。目前来说,grails还比较初级,还需要耐心等候项目的成熟和完善,不过我个人对grails的编程方式相当感兴趣,愿意去尝试grails。

另外一个感

阅读全文(1899) | 回复(0) | 编辑 | 精华 | 删除
 


[Hibernate]EJB3.0 many-to-many relation in action
软件技术

lhwork 发表于 2006/8/23 16:52:30

Recently, I have made a demo application with EJB3.0 for an in-house presentation about the new EJB version. I used the OracleToplink-based implementation in the JDeveloper 10.1.3 EA release (so not the final release) and the OC4J 10.1.3 DP4 container for the run-time environment. The demo showed the attendance how you easily u

阅读全文(1889) | 回复(0) | 编辑 | 精华 | 删除
 


[Apache(jakarta)]用Commons-Email来发邮件
软件技术

lhwork 发表于 2006/8/23 9:54:20

Commons-Email项目旨在提供邮件发送的API,它是在JavaMail API的基础上构建的。 Some of the mail classes that are provided are as follows: SimpleEmail - This class is used to send basic text based emails. MultiPartEmail - This class is used to send multipart messages. This allows a text message with attachments either inline or attached. HtmlEmail - This class is used to send HTML formatted emails. It has all of the capabilities

阅读全文(1850) | 回复(0) | 编辑 | 精华 | 删除
 


[算法]html代码过滤
软件技术

lhwork 发表于 2006/8/23 9:46:26

/**
     * This method takes a string which may contain HTML tags (ie, &lt;b&gt;,
     * &lt;table&gt;, etc) and converts the '&lt'' and '&gt;' characters to
     * their HTML escape sequences.
     *
     * @param input the text to be converted.
     * @return the input string with the characters '&lt;' and '&gt;' replaced<

阅读全文(4008) | 回复(1) | 编辑 | 精华 | 删除
 


« 81 82 83 84 85 86 87 88 89 90 »



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.203 second(s), page refreshed 144758660 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号