FileDocCategorySizeDatePackage
HelloServletMinimal.javaAPI DocExample440Tue Nov 25 11:29:36 GMT 2003None

HelloServletMinimal

public class HelloServletMinimal extends HttpServlet

Fields Summary
Constructors Summary
Methods Summary
public voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)


		PrintWriter out = response.getWriter();

		response.setContentType("text/html");

		out.println("<h1>Hello from a Servlet</h1>");
		out.println("<p>Server time is now ");
		out.println(new Date().toString());