js| Program
JSP actual combat-type program serialization, because a friend recently engaged in JSP, need some information, so it is often used in the actual field of JSP fragments for everyone's reference, there are a lot of things can be used directly, even if you only know a little bit of grammar, I believe that if you can focus on this series will do simple JSP. Thank you for your attention.
Let's start with the login verification:
String userName = null;
String Userpasssword = null;
String testname = Jtextfield1.gettext (). toString ();
String Testpassword = string.valueof (Jtextfield2.gettext ());
String querystring = "Select TestName, Testpassword from admin";
try {
Statement conn = Database1.createstatement ();
ResultSet rs = Conn.executequery (querystring);
UserName = rs.getstring ("UserName");
Userpasssword = rs.getstring ("password");
catch (SQLException ex) {
}
System.out.println (UserName);
System.out.println (Userpasssword);
System.out.println (testname);
System.out.println (Testpassword);