src/main/java/de/uapcore/lightpit/modules/UsersModule.java

changeset 75
33b6843fdf8a
parent 74
91d1fc2a3a14
child 78
bb4c52bf3439
equal deleted inserted replaced
74:91d1fc2a3a14 75:33b6843fdf8a
89 89
90 setRedirectLocation(req, "./teams/"); 90 setRedirectLocation(req, "./teams/");
91 setContentPage(req, Constants.JSP_COMMIT_SUCCESSFUL); 91 setContentPage(req, Constants.JSP_COMMIT_SUCCESSFUL);
92 92
93 LOG.debug("Successfully updated user {}", user.getUsername()); 93 LOG.debug("Successfully updated user {}", user.getUsername());
94 } catch (NoSuchElementException | NumberFormatException | SQLException ex) { 94 } catch (NoSuchElementException | IllegalArgumentException | SQLException ex) {
95 // TODO: set request attribute with error text 95 // TODO: set request attribute with error text
96 req.setAttribute("user", user); 96 req.setAttribute("user", user);
97 setContentPage(req, "user-form"); 97 setContentPage(req, "user-form");
98 LOG.warn("Form validation failure: {}", ex.getMessage()); 98 LOG.warn("Form validation failure: {}", ex.getMessage());
99 LOG.debug("Details:", ex); 99 LOG.debug("Details:", ex);

mercurial