原创 An example of the and tags

<sql id="select-order"> select * from order </sql> <sql id="select-count"> select count(*) as value from order </sql> <

原创 example of well-written jdbc code

public Employee getEmployee(int id) throws SQLException{ Employee employee=null; String sql="SELECT * FORM EMPLOYEE WH

原创 ExtJS Performance - Element click events

this article from    http://www.jasonclawson.com/2008/05/29/extjs-performance-element-click-events/       今天在ExtJS論壇上討論

原创 Javascript Best Practices

Javascript Best Practices from http://www.slideshare.net/cheilmann/javascript-best-practices-1041724   無意之中看到這篇文章,想到自己平

原创 Scope in JavaScript

Got something to say? the article from http://www.digital-web.com/articles/scope_in_javascript Sco

原创 Extjs- Ext.extend函數的使用

Ext.extend在Extjs 中扮演着重大角色,是Extjs中幾個重要函數之一。要想深入瞭解EXTJS,這個函數必須掌握不可,網上有很多關於這個函數的源碼分析和介紹。關於這個函數的使用有以下幾種情況。 function Base

原创 [struts-1.3.10] org.apache.struts包中的Globals類

package org.apache.struts; import java.io.Serializable; /**  * Global manifest constants for the entire Struts Framew

原创 Local transaction

public void runStatementsUsingLocalTransactions() { SqlMapClient sqlMapClient=SqlMapClientConfig.getSqlMapClient();

原创 j2se 基礎

String str=new String("aaa"); String str2=new String("aaa"); System.out.println(str==str2); //false /////////////////

原创 the source of jquery.scrollFollow

/** * jquery.scrollFollow.js * Copyright (c) 2008 Net Perspective (http://kitchen.net-perspective.com/) * Licensed u

原创 java同步代碼範例

public static ControllerConfig getControllerConfig(URL url) { ControllerConfig controllerConfig = (ControllerCo

原创 An example of the <sql> and <include> tags

<sql id="select-order"> select * from order </sql> <sql id="select-count"> select count(*) as value from order </sql> <

原创 Can functions be defined below return statements

function stealthCheck(){ assert( stealth(), "We'll never get below the return, but that's OK!" ); return stealth()

原创 ofbiz controller.xml 文件

public RequestManager(ServletContext context) { /** Loads the site configuration from servlet context paramete

原创 the java IllegalArgumentException code example

if (this.sqlMapClient == null) { throw new IllegalArgumentException("Property 'sqlMapClient' is required"); }