@RequestMapping(value = "/upload", method = RequestMethod.POST)
	public String upload(ModelMap model, HttpServletRequest request, HttpServletResponse response) {
		try {
			List<FileItem> items = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);
			String fileName = "teaDataFile.txt";
			for (FileItem fi : items) {
				if (fi.getFieldName().equals("userFile")) {
					System.out.println(fi.getFieldName());
					InputStream is = fi.getInputStream();
					byte[] barr = new byte[(int) fi.getSize()];
					is.read(barr);
					FileOutputStream fos = new FileOutputStream(fileName);
					fos.write(barr);
					fos.close();
					is.close();
				}
			}
			tc = new TeaClassifier();
			tc.generateTrainingSetFromTxt(fileName);
			tree = new TeaTree(tc);
			writeDataToModel(model);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "index";
	}