原创 HELLOWORLD級事件屬性監聽小技巧,隨便寫了點測試代碼

首先,定義一個基類,負責加入監聽者, package net.cafe; import java.beans.PropertyChangeSupport;import java.beans.PropertyChangeListener;

原创 C++大師Lippman:我對中國程序員的忠告(在CSDN上看到的一篇好文...收藏)

C++語言的創立者,斯坦-利普曼(Stan Lippman) (原文來自天極網,C++語言創立者實爲Bjarne Stroustrup)9月17日參加了在北京召開的微軟技術大會Tech.Ed2004並做了"The C++ Binding,

原创 JDO makePersistent 的一些補充

Parameters: pc - a transient instance of a Class that implements PersistenceCapable 這是JDO-javadoc裏的對makePersistent的一段定義

原创 狠批JDK的Observer接口!!!(言重了....^_^)

Oberver模式常被“標榜”爲快速響應Client的變化,及時的將message分發給訂閱者,kao ... 其實,默認的JDK API根本就滿足不了所謂的快速響應,甚至不如傳統的過程式的執行方式:( 來看看JDK的Oberver都做了

原创 JDO規範相關術語的定義

Application data class: A class defined by the application programmer primarily to hold data that will be stored in th

原创 struts在頁面中使用form標記的注意事項

struts在頁面中使用form標記的注意事項struts的form標記定義了一個頁面的表單,但該struts標記需要根據action的值來查找module config裏的action mapping,並

原创 讀JPetStore有感,靈活使用框架....

Struts想必大家已經用爛了把。。。^_^今天無意中看了一點JPetStore的源代碼,發覺他的一些用法很值得討論。。JPetStore是1個完全的使用OpenSource的demo,使用了Struts+IBATiS嘿嘿,以前不是有j2