	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
	    response.setHeader("Cache-Control", "no-cache");
	    response.setHeader("Pragma", "no-cache");
	    response.setContentType("text/html");
	    String equation = request.getParameter("equation");
	    String[] pnames = request.getParameterValues("pname");
	    String[] pvalues = request.getParameterValues("pvalue");
	    for (int i=0; i < pnames.length; i++) 
	    	System.out.println("pname: "+pnames[i]+" pvalue: "+pvalues[i]);
	    PrintWriter out = response.getWriter();
	    GraphDescriber describer = new GraphDescriber(equation);
	    String newEquation = describer.getNewEquation(pnames, pvalues);
		System.out.println("NEW EQUATION IS: "+newEquation);
	    out.println("<html>");
	    out.println("<head></head><body>");
	    out.println("<form method='get' action='/Mde-Web-Service/GetEquationDescription'>");
	    out.println("Enter an equation: ");
	    out.println("<input type='text' name='equation'>");
	    out.println("<input type='submit'>");
	    out.println("</form>");
	    out.println("</head></body>");
	    out.println("</html>");
	}

	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
	    response.setHeader("Cache-Control", "no-cache");
	    response.setHeader("Pragma", "no-cache");
	    response.setContentType("text/html");
	    String equation = request.getParameter("equation");
	    String[] pnames = request.getParameterValues("pname");
	    String[] pvalues = request.getParameterValues("pvalue");
	    for (int i=0; i < pnames.length; i++) 
	    	System.out.println("pname: "+pnames[i]+" pvalue: "+pvalues[i]);
	    PrintWriter out = response.getWriter();
	    GraphDescriber describer = new GraphDescriber(equation);
	    String newEquation = describer.getNewEquation(pnames, pvalues);
	    out.print(newEquation);
	}
