public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
          HttpSession session = request.getSession();
                String userName=(String)session.getAttribute("USERNAME");
		PrintWriter out = response.getWriter();
		if (userName==null){
		    response.sendRedirect("login.jsp");
                    userName="";
		}
                if (!userName.equals("admin")){
                  out.println("Insufficient permissions!");
                }

		// pruint out form for analysis
		out.println("<html><head><title>" + "Data Analysis" + "</title></head>");
		out.println("<div style='float: right'>"
				+ "<form name='logout' method='post' action='logout.jsp'>"
				+ "<input type='submit' name='logout' value='logout'> </form>"
                                +"<form name=menu method=get action=menu.jsp><input type=submit name=menu value=menu></form>"
                                +" <form name=help method=get action=help.html><input type=submit name=help value=help></form>"
				+ "</div>");
		out.println("<body> <H1>Data Analysis</H1>"
				+ "<form name='olapresult' method='post' action = 'Olap'>"
				+ "Analyze Options:<br>"
				+ "<input type='checkbox' name='imageowner' value='1'></input> User: "
                            	+ "<input name='ownerText' type='text' size='30'></input> <br>"
				+ "<input type='checkbox' name='subjectBox' value='1'></input> Subject: "
				+ "<input name='subjectText' type='text' size='30'></input> <br>"
				+ "<input type='checkbox' name='time' value='1'></input> Find by date: <br>"
				+ "from: <input name='fromTime' placeholder ='DD/MM/YYYY' type='text' size='30'></input> <br>"
				+ "to: <input name='toTime' placeholder ='DD/MM/YYYY'type='text' size='30'></input><br>"
				+ "<hr>"
				+ "Order Time Period by:"
				+ "<input type='radio' name='order' value='Daily'></input> Daily"
				+ "<input type='radio' name='order' value='Monthly'></input> Monthly"
				+ "<input type='radio' name='order' value='Yearly'></input> Yearly<br><br>"
				+ "<input type='submit' name='analyze' value='Analyze'>"
				+ "</form>" + "</BODY></HTML>");

	}