查询结果怎么不能得到
这是我的程序:
String action = request.getParameter( "action ");
//System.out.println(action);
if ( "certain ".equals(action)) {
String username = request.getParameter( "username ");
System.out.println(username);
String password = request.getParameter( "password ");
System.out.println(password);
String sql = "select password from bs_users where username = ' " + username + " ' ";
//String sql = "select sysdate from dual ";
System.out.println(sql);
try {
Class.forName( "oracle.jdbc.driver.OracleDriver ");
String url = "jdbc:oracle:thin:@10.11.12.75:1521:xe ";
Connection conn = null;
try {
conn = DriverManager.getConnection(url, "legend ", "19840601 ");
System.out.println( "deng lu cheng gong! ");
} catch (
SQLException e) {
System.err.println( "login database failure! ");
}
Statement stmt = null;
try {
if (conn != null) {
stmt = conn.createStatement();
System.out.println( "prod