Thursday, December 2, 2010

GenericServlet Full structure sample Example

package com.nareshit.servlets;
import javax.servlet.*;
public class Helloworld implements servlet
{
public Helloworld()
{
System.out.println("Constructor");
}
public void init(ServletConfig config)
{
System.out.println("Init method");
}
public void service(ServletRequest r,ServletResponse res)
{

System.out.println("Hello world");   
}
public void destroy()
{
System.out.println("destroy method");
}
public string getServletInfo()
{
return "Hai";
}
public servletConfig getServletConfig()
{
return null;
}
}   

1 comment:

  1. How to Play Pai Gow Poker | BetRivers Casino - Wolverione
    Pai Gow gri-go.com Poker is poormansguidetocasinogambling.com an online 출장마사지 version of a traditional table worrione game in which players place bets in the background. Pai Gow Poker uses only https://septcasino.com/review/merit-casino/ the symbols from a

    ReplyDelete