Skip to content

Instantly share code, notes, and snippets.

@netodevel
Created August 2, 2016 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netodevel/8c93d692ee1a3d2723f1daa3507ff4d6 to your computer and use it in GitHub Desktop.
Save netodevel/8c93d692ee1a3d2723f1daa3507ff4d6 to your computer and use it in GitHub Desktop.
public class OiMundo extends HttpServlet {
protected void service (HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
// escreve o texto
out.println("<html>");
out.println("<body>");
out.println("Primeira servlet");
out.println("</body>");
out.println("</html>");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment