我的評論
re: 擴展基于prototype的validation.js Tang Anping 2007-10-05 13:10
@Victor
日期可以不需要驗證的,有一個強大的日期控件,可以去看一下,可以自動糾錯,而且可以自動限制日期的選擇。http://blog.csdn.net/My97/archive/2007/06/29/1671264.aspx
日期可以不需要驗證的,有一個強大的日期控件,可以去看一下,可以自動糾錯,而且可以自動限制日期的選擇。http://blog.csdn.net/My97/archive/2007/06/29/1671264.aspx
re: 擴展基于prototype的validation.js Tang Anping 2007-05-11 21:19
當鏈接到一個新頁面,提交的時候正常,重置和取消的時候還在驗證,這樣就需要點擊兩次,因為你第一次已經獲得焦點,能不能修改一下!
re: 擴展基于prototype的validation.js Tang Anping 2007-04-26 13:47
只能在IE中使用,不能使用FireFox瀏覽器。
re: 利用Spring AOP 緩存方法結果集 Tang Anping 2006-11-28 10:08
踏破鐵鞋無覓處,得來全不費工夫。
一下子,這幾天的難題都解決了,謝謝!
有一個小問題,好像使用默認的cglib會報錯,設置target即可。
一下子,這幾天的難題都解決了,謝謝!
有一個小問題,好像使用默認的cglib會報錯,設置target即可。
re: Spring Transaction Tang Anping 2006-11-24 14:40
對JDO事務的封裝,你實現了嗎,我配好之后,總是報下面的異常:
org.springframework.dao.InvalidDataAccessResourceUsageException: Could not invoke JDO makePersistent(Object) method; nested exception is kodo.util.UserException: Spring Can only perform operation while a transaction is active.
kodo.util.UserException: Can only perform operation while a transaction is active.
org.springframework.dao.InvalidDataAccessResourceUsageException: Could not invoke JDO makePersistent(Object) method; nested exception is kodo.util.UserException: Spring Can only perform operation while a transaction is active.
kodo.util.UserException: Can only perform operation while a transaction is active.
re: 讀取資源文件 Tang Anping 2006-11-23 22:54
還有一種方法,直接用流讀取,它不依賴于Ibatis的API:
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.FileInputStream;
import java.util.Properties;
public class PropertiesTest {
public static void main(String[] args) {
try {
InputStream in = new FileInputStream("properties/database.properties");
Properties props = new Properties(); // or System.getProperties();
props.load(in);
in.close(); // 別忘了關流
String url = props.getProperty("url");
String driver = props.getProperty("driver");
String username = props.getProperty("username");
String password = props.getProperty("password");
System.out.println(url + " " + driver + " " + username + " " + password);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.FileInputStream;
import java.util.Properties;
public class PropertiesTest {
public static void main(String[] args) {
try {
InputStream in = new FileInputStream("properties/database.properties");
Properties props = new Properties(); // or System.getProperties();
props.load(in);
in.close(); // 別忘了關流
String url = props.getProperty("url");
String driver = props.getProperty("driver");
String username = props.getProperty("username");
String password = props.getProperty("password");
System.out.println(url + " " + driver + " " + username + " " + password);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
re: Ibatis基本配置---[環境搭建] Tang Anping 2006-11-23 20:36
在線搭建,以前用Hibernate,Kodo JDO知道一點。