private void deleteEntity(String entity, HttpServletRequest request) {
		String parameter = request.getParameter("ID");
		if(entity.equalsIgnoreCase("studententity")){
			PersonDao.deletePerson(parameter);
		}else if(entity.equalsIgnoreCase("professorentity")){
			PersonDao.deletePerson(parameter);
		}else if(entity.equalsIgnoreCase("departmententity")){
			DepartmentDao.deleteDept(parameter);
		}else if(entity.equalsIgnoreCase("categoryentity")){
			CategoryDao.deleteCategory(parameter);
		}else if(entity.equalsIgnoreCase("evententity")){
			EventDao.deletEvent(parameter);
		}
		
	}