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); |