HttpServletResponse response,
HttpSession session )
throws IOException, ServletException
{
// retrieve previous form values...
MailSettings cfg = "process".equals(request.getParameter("sub")) ? (MailSettings) session
.getAttribute(CLASS_NAME + "jahiaMailSettings")
: null;
if (cfg == null) {
cfg = ServicesRegistry.getInstance().getMailService().getSettings();
session.setAttribute(CLASS_NAME + "jahiaMailSettings", cfg);