@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
	{

		this.setResponseStuff(response);
		this.createSession(request, response);
		String action= null;
		if ((request.getParameter("action") != null))
		{
			action= (request.getParameter("action"));
		}
		else
		{
			action= "news";
		}
		this.confirmAuthentication(response, request, action);
		switch (action)
		{
			case "viewArticle":
				NewsItemBean article=
				BizLogic.getNewsItem(this.currentUserID(request), Integer.parseInt(request.getParameter("articleID")));
				if (article != null)
				{
					boolean canComment=
							BizLogic.canComment(this.currentUserID(request), Integer.parseInt(request.getParameter("articleID")));
					request.setAttribute("canComment", String.valueOf(canComment));
					request.setAttribute("article", article);
					request.getRequestDispatcher("/NewsArticle/NewsArticle.jsp").include(request, response);
					this.userMenu(request, response);
				}
				else
				{
					request.getRequestDispatcher("/Authentication/login.jsp").include(request, response);
				}
				// response.sendRedirect("/Authentication/login.jsp?returnTO=viewArticle&articleID="
				// + request.getParameter("articleID"));
				break;
			case "login":
				request.getRequestDispatcher("/Authentication/login.jsp").include(request, response);
				this.userMenu(request, response);
				break;
			case "logout":
				request.getSession().invalidate();
				response.sendRedirect("./");
				break;
			case "createNewsStory":
				boolean canAuthorArticle= BizLogic.canAuthorArticles(this.currentUserID(request));
				if (canAuthorArticle)
				{
					request.getRequestDispatcher("/NewsArticle/CreateNewsStory.jsp").include(request, response);
					this.userMenu(request, response);
				}
				else
				{
					request.getRequestDispatcher("/Authentication/login.jsp").include(request, response);
				}
				break;
			case "news":
				ArrayList<NewsItemBean[]> stories;
				if ((stories= BizLogic.getNews(this.currentUserID(request), this.getCookieMap(request))) != null)
				{
					request.setAttribute("favstories", stories.get(0));
					request.setAttribute("stories", stories.get(1));
					request.setAttribute("articlesCanManage", stories.get(2));
					request.getRequestDispatcher("home.jsp").include(request, response);
					this.userMenu(request, response);
					// response.getWriter().println(NewsDAOFactory.getTheDAO().getClass().toString());
					break;
				}
			default:
				response.sendError(Response.SC_BAD_REQUEST);
				break;
		}
	}