Demo entry 6732888

java

   

Submitted by anonymous on Apr 16, 2018 at 07:04
Language: Java. Code size: 448 Bytes.

package web;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class HelloServlet extends HttpServlet{
    public void service(HttpServletRequest request,
            HttpServletResponse response) throws
            ServletException,IOException{
        PrintWriter out=response.getWriter();
        out.println("Hello,World!");
        System.out.println("Successfuly login.");
        out.close();
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).