Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/12/2005, 00:12
maciax
 
Fecha de Ingreso: diciembre-2005
Mensajes: 2
Antigüedad: 19 años, 3 meses
Puntos: 0
Muchas gracias si era eso era en lugar de Usuario nom_usu pero ahora tengo un pequeño gran problema
Código PHP:
public void actionPerformed(ActionEvent ae){
        
        
String  usu=""pas="";
        if(
ae.getActionCommand().equals ("Conectar")){
                    
            try{
                
String url "jdbc:odbc:Usuarios";
                Class.
forName("sun.jdbc.odbc.JdbcOdbcDriver");
                
DriverManager.getConnection(url,id,passw);
                
c.setAutoCommit(false);            
            
usu=user.getText();
            
pas=new String(pass.getPassword());
                
    
                
st=c.createStatement();
                
String query "SELECT nom_usu FROM Usuario";

                
result st.executeQuery(query);
    
                   while(
result.next()){
                       
                    
nombreresult.getString("nom_usu");                    
                    if(
usu.equalsIgnoreCase(nombre)){
                         
System.out.println("Nombre correcto A LA VERNOO");
                        
frame.dispose();
                        
//NEW OTRACLASE().INIT();                        
                        
return;
                    }else{
                    
System.out.println("HOLA "+usu+" "+nombre);
                    }
        
                }
            }catch(
Exception nfe){
                
nfe.printStackTrace ();            
            }    
    
                
        }else{
            
frame.dispose();
        }
    } 
el getText(); no me guarda nada no me esta obteniendo el texto alguien de uds me podria dcir el pq de esto :S