Skip to content

Instantly share code, notes, and snippets.

@viralpatel
viralpatel / HelloServlet.java
Created Oct 16, 2013
HTML5 Server-Sent Events + Java Servlet example
View HelloServlet.java
package net.viralpatel.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;