public boolean UserLogin(User user) throws Exception   { 
     Connection con=null;   
       PreparedStatement ps=null;   
       ResultSet rs=null;
       try
       {
       
        String sql="Select userName,password from tb_Users where userName=? and password=?";  
        con=SqlConnect.getConnection();
   ps=con.prepareStatement(sql); 
   System.out.print("u1111");
   rs=ps.executeQuery();   
            while(rs.next())
            {   
               
             System.out.print("ok001");
             return true;             }
       }
      catch(SQLException e)
  {
   e.printStackTrace();
   }
   
return false;
     
      
    }
 这个里面有没有错误啊 还有怎么在java类里面获取jsp页面文本框的内容的代码呢