import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class OlaMundo extends HttpServlet { public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println(""); out.println(""); out.println("Servlet"); out.println(""); out.println("Olá mundo!!!"); out.println(""); out.println(""); out.close(); } }