import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorldServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println(""); out.println(""); out.println(""); out.println("Hello World!"); out.println(""); out.println(""); out.println("

Yo Ho Ho and a Bottle Of Rum!

"); out.println(""); out.println(""); out.println(""); } }