@Override
	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		String user = request.getRemoteUser();
		int p=0;
	try {
			p=loggedInUser.getAccess(user);
			
		} catch (SQLException e1) {
			
			
			response.getWriter().println("<p> Exception</p>");
			

		}

//		u.getAccess()==1
		
		if (user != null) {
			
			if(p==1){
		response.getWriter().println("<p>Order Placement!    "+p+"   </p>");
		try {
			appendOrderTable(response);
			appendAddForm(response);
		} catch (Exception e) {
			response.getWriter().println(
					"Persistence operation failed with reason: "
							+ e.getMessage());
			LOGGER.error("Persistence operation failed", e);
		}
			} else {response.getWriter().println("You don't have the permision to view this"); }
			
			
	    } else {
	        LoginContext loginContext;
	        try {
	          loginContext = LoginContextFactory.createLoginContext("FORM");
	          loginContext.login();
	          response.getWriter().println("Hello, " + request.getRemoteUser());

	        } catch (LoginException e) {
	          e.printStackTrace();
	        }
	      }
		
	}