@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

		if (req.getParameter("projectSelect") != null && !req.getParameter("projectSelect").equals(""))
			Resources.getInstance().setProjectId(Integer.parseInt(req.getParameter("projectSelect")));
		if (req.getParameter("changesetFrom") != null && !req.getParameter("changesetFrom").equals(""))
			Resources.getInstance().setChangesetFromId(Integer.parseInt(req.getParameter("changesetFrom")));
		if (req.getParameter("changesetTo") != null && !req.getParameter("changesetTo").equals(""))
			Resources.getInstance().setChangesetToId(Integer.parseInt(req.getParameter("changesetTo")));

		Controller controller = new Controller();
		List<ProjectsEntity> projectsEntityList = controller.getProjects();
		ChangesetDto changesetFrom = controller.getChangeset(Resources.getInstance().getChangesetFromId());
		ChangesetDto changesetTo = controller.getChangeset(Resources.getInstance().getChangesetToId());

		for (ProjectsEntity projectsEntity : projectsEntityList) {
			String[] pieces = PATH_SEPARATOR.split(projectsEntity.getName());
			projectsEntity.setName(pieces[pieces.length - 1]);
		}

		Resources.getInstance().setChangesetFrom(changesetFrom);
		Resources.getInstance().setChangesetTo(changesetTo);
		Resources.getInstance().setProjectDto(projectsEntityList.get(Resources.getInstance().getProjectId() - 1));

		req.setAttribute("changesetFromId", Resources.getInstance().getChangesetFromId());
		req.setAttribute("changesetToId", Resources.getInstance().getChangesetToId());
		req.setAttribute("projectSelect", Resources.getInstance().getProjectId());
		req.setAttribute("allProjects", projectsEntityList);

		req.setAttribute("from", "vis");
		getServletContext().getRequestDispatcher("/template.jsp").forward(req, resp);
	}