throws Exception {
if (log.isDebugEnabled()) {
log.debug("save method called");
}
DynaActionForm connectionForm = (DynaActionForm) form;
Connection connection = (Connection) connectionForm
.get(ConsoleCst.CONNECTION_REQUEST_BEAN);
String forward = request.getParameter("forward");
if (log.isDebugEnabled()) {
log.debug(connection);
}
connectionService.save(connection, (Collection) request.getSession()
.getAttribute(ConsoleCst.CONNECTIONS_SESSION_BEAN));
String caller = request.getParameter("caller");
if (!"connections".equals(caller)) {
request.getSession().setAttribute(
ConsoleCst.IS_CONNECTION_MODIFIED,
ConsoleCst.CONNECTION_MODIFIED);
}
refreshMenu(request, connection.getId());
return mapping.findForward(forward);
}