protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		response.getWriter().write("hi");	
		HashMap<String,Integer> accessList=new HashMap<String,Integer>();
		System.out.println("test called");
		try {			
		
			URL textURL = getServletContext().getResource("/AccessList.xml"); 
			InputStream is = textURL.openStream() ;
			DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
			DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
			Document doc = dBuilder.parse(is);

			//optional, but recommended
			//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work
			doc.getDocumentElement().normalize();

			System.out.println("Root element :" + doc.getDocumentElement().getNodeName());

			NodeList nList = doc.getElementsByTagName("page");

			System.out.println("----------------------------");

			for (int temp = 0; temp < nList.getLength(); temp++) {

				Node nNode = nList.item(temp);

				System.out.println("\nCurrent Element :" + nNode.getNodeName());

				if (nNode.getNodeType() == Node.ELEMENT_NODE) {

					Element eElement = (Element) nNode;
					accessList.put(eElement.getElementsByTagName("url").item(0).getTextContent(),Integer.parseInt(eElement.getElementsByTagName("level").item(0).getTextContent()));
					//System.out.println("URL : " + eElement.getElementsByTagName("url").item(0).getTextContent());
					//System.out.println("Level : " + eElement.getElementsByTagName("level").item(0).getTextContent());


				}
				System.out.println(accessList.get(request.getParameter("url")));
			}
		} catch (Exception e) {
			e.printStackTrace();
		}


	}