目前分類:電腦相關 (4)

瀏覽方式: 標題列表 簡短摘要
1. 用命令提示字元執行xxx.exe
開始->執行 鍵入cmd
找到你的xxx.exe檔案 直接執行他

2. 使用getche();函式

vito0302 發表在 痞客邦 留言(2) 人氣()

剛接觸JSP時,都要灌一堆東西,要先把Tomcat架好,然後作些小設定。
如果使用Eclipse,還要下載plugin才能跟Tomcat連結,實在是有點麻煩。

幸好sun終於想到他們有一個荒廢很久的IDE,Netbeans。
裡面把許多東西都內建了,不需要額外下載設定,一些Library都已內建在裡面

vito0302 發表在 痞客邦 留言(0) 人氣()

ResultSet竟然沒有提供檢查是否為空的method,真是很不方便
所以要檢查是否為空,都要多寫幾行程式來檢查,這對懶人來說真是種痛苦....QQ

ResultSet rs=st.executeQuery(sql);
rs.last();

vito0302 發表在 痞客邦 留言(0) 人氣()

1. find the string of “define the default virtual host” in server.xml which in conf the default host is (Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false")


2. set the context path under the default host,take for example (Context path="/BMDB" docBase="D:\Program\eclipse\eclipse\workspace\jsptest\test" debug="0"/)

vito0302 發表在 痞客邦 留言(0) 人氣()