Servlet - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Servlet

skanhuskanhu Posts: 2Member
import javax.servlet .*;
import java.io.*;
public class HelloworldServlet implements Servlet
{
public void Servlet(ServletRequest request, ServletResponse response) throws IoException, ServletException
{
response.setcontenttype( text/html );
printwriter out = response.getwriter() ;
out.println("");
out.println("");
pout.println("

HelloWorld

");
pout.prinlnt("");
out.close();
{
public void init(ServletConfig config) throws servletexception
{
}
public void destroy()
{
}
public string getServletInfo()
{
return null;
}
public ServletConfig getServletConfig()
{
return null;
}
}}}


Sign In or Register to comment.