String imap = request.getParameter("imap");
String pop3 = request.getParameter("pop3");
String webmail = request.getParameter("webmail");
String spam = request.getParameter("spam");
//TODO fehlerbehandlung aber erst später >>createDomain<<
Domains domains = new Domains();
domains.setDomain(domain);
domains.setNode(node);
domains.setMaxMails(Integer.parseInt(maxMails));
domains.setImap(Integer.parseInt(imap));
domains.setPop3(Integer.parseInt(pop3));
domains.setWebmail(Integer.parseInt(webmail));
domains.setSpam(Integer.parseInt(spam));
if(domains.insertDomain(dbConnection) == 0){
try {
PrintWriter out = response.getWriter();
out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
out.println("<AjaxResponse data=\"createDomain\">");
out.println("<Response>true</Response>");