Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 20th, 2012  |  syntax: Java  |  size: 0.66 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (to.getPorukaKlijenta().equals("promena sifre")) {
  2.    
  3.     if (ulogovanKorisnik != null) {
  4.        
  5.         Korisnik k = (Korisnik) to.getObjekatKlijenta();
  6.        
  7.         if (ulogovanKorisnik.getSifra() == k.getSifra()) {
  8.  
  9.             k.setSifra(ulogovanKorisnik.getSifra());
  10.            
  11.             boolean rezultat = Broker.vratiInstancu().izmeniSifru(ulogovanKorisnik);
  12.            
  13.             if (rezultat == true) {
  14.                 to.setPorukaServera("uspesno");
  15.             } else {
  16.                 to.setPorukaServera("neuspesno");
  17.             }
  18.         }
  19.     } else {
  20.         to.setPorukaServera("nije ulogovan");
  21.     }
  22.  
  23.     posalji(to);
  24. }