Created
August 2, 2016 14:03
-
-
Save netodevel/8c93d692ee1a3d2723f1daa3507ff4d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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