protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{	
		if (active(request)) //if there is an active user
		{			
			if (request.getRequestURI().equals(request.getContextPath() + "/following")) //if no string occurs after following/
			{			
				List<User> followingList = followMain.getFollowing(user.getEmail());
			
				if (followingList.size() == 0) //if the user does not follow any users
					request.setAttribute("noFollowing", "You do not follow any users");
				
				request.setAttribute("followingList", followingList);
				request.setAttribute("following", followingList.size());
				request.getRequestDispatcher("/following.jsp").forward(request, response);
				return;
			}
			else //a string occurs after following/
			{
				request.getRequestDispatcher("/404.jsp").forward(request, response);
				return;
			}
		}
		else //there is no active user
		{
			response.sendRedirect(request.getContextPath() + "/login");
			return;
		}
	}