JavaScript是不能與數據庫通信的,若能也極其麻煩請參考此貼
http://search.csdn.net/Expert/topic/2520/2520344.xml?temp=.7851068用Java不知怎么實現﹐建議轉到Java社區吧