Esempio n. 1
0
 public String update() throws SQLException, NullPointerException {
   int result = 0;
   String flag = INPUT;
   if (null != user)
     try {
       result = userService.update(user);
     } catch (InvalidInputException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
   if (result > 0) flag = "list";
   else if (result == 0) flag = INPUT;
   else flag = ERROR;
   return flag;
 }