private void logon(){
HttpSession session = request.getSession(true);
String user = request.getParameter("user");
String password = request.getParameter("password");
User userTable = new User();
userTable.setUserName(user);
userTable.setPassword(password);
userTable.setActive(1);
userTable.setRights(0);
response.setContentType("text/xml");
try {
PrintWriter out = response.getWriter();
out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
out.println("<AjaxResponse data=\"login\">");
if(userTable.logon(dbConnection)){
out.println("<Login>true</Login>");
session.setAttribute("user", user);
session.setAttribute("rights", 0);
}else{
out.println("<Login>false</Login>");