FileDocCategorySizeDatePackage
Servlet_Service.javaAPI DocExample853Sat Oct 27 15:57:20 BST 2001None

Servlet_Service

public class Servlet_Service extends HttpServlet

Fields Summary
Constructors Summary
Methods Summary
public voidservice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Called in response to any request.


		String requestType = request.getMethod();

		response.setContentType("text/html");
		PrintWriter out = response.getWriter(); 

		// BOILERPLATE beginning
		out.println("<HTML>");
		out.println("<HEAD><TITLE>Servlet Output</TITLE></HEAD>");
		out.println("<BODY>");

		// to do: logic code and main HTML goes here.

		// BOILERPLATE ending
		out.println("</BODY>");
		out.println("</HTML>");
		out.close();