130 likes | 276 Views
專題報告 機密文件線上存取系統. 指導老師 : 溫翔安 教授. Index.jsp. function pass() { document.applet.onSendData(document.a.ccname.value,document.a.ccpw.value); }. <APPLET name=applet code=EchoApplet.class WIDTH=0 HEIGHT=0>. servlet. public static void connection(){ try {
E N D
專題報告 機密文件線上存取系統 指導老師:溫翔安 教授
Index.jsp function pass() { document.applet.onSendData(document.a.ccname.value,document.a.ccpw.value); } <APPLET name=applet code=EchoApplet.class WIDTH=0 HEIGHT=0>
servlet public static void connection(){ try { Class.forName("com.mysql.jdbc.Driver"); } catch (Exception e) {} } ResultSet rs1 = stmt1.executeQuery("select accno from account"); String url = "jdbc:mysql://localhost/report"; String root = "stu"; String password = "Vbav8Ypbjnh8ETGU"; Connection con1 = DriverManager.getConnection(url, root, password); Statement stmt1 = con1.createStatement();
ResultSet rs1 = stmt1.executeQuery("select accno from account"); if(rs1.next())
ENDING 感謝大家的觀賞~