saveErrors(request, errors);
return mapping.findForward("config.server");
}
}
GlobalConfig globalConfig = getGlobalConfig();
globalConfig.setMaxFeatures(maxFeatures);
globalConfig.setVerbose(verbose);
globalConfig.setNumDecimals(numDecimals);
globalConfig.setBaseUrl(baseURL);
globalConfig.setSchemaBaseUrl(schemaBaseURL);
globalConfig.setCharSet(charset);
globalConfig.setAdminUserName(adminUserName);
globalConfig.setAdminPassword(adminPassword);
globalConfig.setLoggingLevel(loggingLevel);
globalConfig.setLoggingToFile(loggingToFile);
globalConfig.setLogLocation(logLocation);
globalConfig.setVerboseExceptions(verboseExceptions);
ContactConfig contactConfig = globalConfig.getContact();
contactConfig.setContactPerson( form.getContactPerson() );
contactConfig.setContactOrganization( form.getContactOrganization() );
contactConfig.setContactPosition( form.getContactPosition() );
contactConfig.setAddressType( form.getAddressType() );
contactConfig.setAddress( form.getAddress() );
contactConfig.setAddressCity( form.getAddressCity() );
contactConfig.setAddressCountry( form.getAddressCountry() );
contactConfig.setAddressPostalCode( form.getAddressPostalCode() );
contactConfig.setAddressState( form.getAddressState() );
contactConfig.setContactVoice( form.getContactVoice() );
contactConfig.setContactFacsimile( form.getContactFacsimile() );
contactConfig.setContactEmail( form.getContactEmail() );
globalConfig.setContact(contactConfig);
getApplicationState().notifyConfigChanged();
getServlet().getServletContext().setAttribute(GlobalConfig.CONFIG_KEY, globalConfig);