war部屬在server時出現空白頁面在Eclipse測試時是可以的,問題好像出現在sql語法時這幾段
String sqlstr = "select admin,psw from admin where "
+ "admin=? and psw=?";
PreparedStatement prepareState = conn.prepareStatement(sqlstr);
prepareState.setString(1, loginadmin);
prepareState.setString(2, loginpwd);
因為確定資料庫已經連線
log檔
localhost_access_log.2016-11-01.txt
127.0.0.1 - - [01/Nov/2016:23:14:56 +0800] "GET /system/login.do HTTP/1.1" 200 -
127.0.0.1 - - [01/Nov/2016:23:14:58 +0800] "GET /system/login.do HTTP/1.1" 200 -
我的form method="post"