UserDao userDao = new UserDao();
User userToBan = userDao.findEntityById(userUid);
if (userToBan.getLogin() != null) {
userToBan.setBan(!userToBan.isBan());
userDao.updateEntity(userToBan);
List<User> users = userDao.findAll();
request.setAttribute(Commands.SHOW_USERS_LIST, users);
}
} catch (NumberFormatException e) {
log.error("Can not parse user id", e);
} catch (DaoException e) {