package MyServlet;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Hello extends HttpServlet {

  public String getServletInfo() {
    return "Hello version 1.9: A simple demo servlet from vqSoft";}

  public void init(ServletConfig config) throws ServletException {
    super.init(config);}

  public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
    log("invoked");
    res.setContentType("text/html");
    PrintWriter os=res.getWriter();
    os.println("<html>");
    os.println("<head><title>Hello!</title></head>");
    os.println("<body bgcolor=#add8af>");
    os.println("<table border=0 cellspacing=0 cellpadding=2 cols=3 width=100%>");
    os.println("<tr><td valign=top>");
    os.println("<h1 align=center>Hello!</h1>");
    os.println("<p><hr></p>");
    os.println("<p>This page was generated by <i>Hello</i>, ");
    os.println("a very simple sample servlet supplied with <a href=http://www/vqsoft.com/vq/server/index.html><i>vq</i>Server</a>. ");
    os.println("<i>Hello</i> demonstrates that servlets conforming to the JavaSoft servlet specification version 2.0 are supported by <i>vq</i>Server.</p>");
    os.println("<p><hr></p>");
    os.println("<p><i>Hello</i> version 1.9. <i>Hello</i> and <a href=http://www/vqsoft.com/vq/server/index.html><i>vq</i>Server</a> are copyright &copy; 1997-99 Steve Shering and <i>vq</i>Soft.");
    os.println("</td>");
    os.println("<td width=20></td>");
    os.println("<td valign=top width=150>");
    os.println("<a href=/index.html><img src=/jbuilder3/myclasses/myservlet/utab.gif border=0 height=15 width=15>Home page</A>");
    os.println("</td>");
    os.println("</table>");
    os.println("</body></html>");
    os.flush();
    }
}
