/******************************************************************** * * StateQueryForm.java * * Last Modified: 5/12/00 * * This servlet creates a form (on the fly) which asks for a state name * and then send it to the servlet StateQueryAns by the POST method. * ********************************************************************/ import java.io.*; import java.text.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class StateQueryForm extends HttpServlet { public static String USERNAME = new String("user"); public static String PASSWORD = new String("pass"); public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println(""); out.println("
"); String title = "State Info Query Engine"; out.println(""); out.print("
"); out.println(""); out.println(""); } }