@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String input = request.getParameter("input");
		ArrayList<Result> values = new ArrayList<Result>();
		
		for(String key : context.getMapKeys()){
			if(input.toLowerCase().contains(key.toLowerCase())){
				values.addAll(context.getAllResults(key));
			}
		}
		
		if(values.isEmpty()){
			values.add(new Result("Nothing", "It appears we don't have any feedback for the given input."));
		}
		
		request.setAttribute("list", values);
		RequestDispatcher view = request.getRequestDispatcher("WEB-INF/GeneratedSolution.jsp");
        view.forward(request, response);
	}