import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

public class post extends HttpServlet
{
  /**
   * Handle the HTTP POST method by building a simple web page.
   */
  public void doPost( HttpServletRequest request, HttpServletResponse response )
    throws ServletException, IOException
  {
    String title = new String( "Example doPost Servlet" );

    // set content type and other response header fields first
    response.setContentType( "text/html" );

    // set up the response writer
    PrintWriter out = response.getWriter();

    out.println( "<html><head><title>" );
    out.println( title );
    out.println( "</title></head><body>" );
    out.println( "<p>GetID = <b>" + request.getParameter( "GetID" ) + "</b>.</p>" );
    out.println( "</body></html>" );
    out.close();
  }
}