protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		SearchContext context;
		ResultSet searchResults;
		
		if((request.getParameter("searchtype")!=null)&&(request.getParameter("searchattribute")!=null)){
			String searchname = request.getParameter("searchattribute");
			String searchtype = request.getParameter("searchtype");
			
			if (searchtype.equals("bookname")) {
				context = new SearchContext(new BookNameSearch());
				searchResults = context.executeSearch(searchname);
				request.setAttribute("bookresult", searchResults);
				
			}

			else if (searchtype.equals("isbn")) {
				context = new SearchContext(new IsbnSearch());
				searchResults = context.executeSearch(searchname);
				request.setAttribute("bookresult", searchResults);
			}

			else if (searchtype.equals("membername")) {
				context = new SearchContext(new MemberNameSearch());
				searchResults = context.executeSearch(searchname);
				request.setAttribute("memberresult",searchResults );
				
			} else {
				context = new SearchContext(new NullSearch());
				searchResults = context.executeSearch(searchname);
				request.setAttribute("nullresult",searchResults );
			}
		}
		
		getServletContext().getRequestDispatcher("/Search.jsp").forward(request, response);
		
	}