Class Header

java.lang.Object
   |
   +----Header

public class Header
extends Object
A class for HTML generation. This is used for generating Headers of a Page. Obviously this reduces coding in the other Servlets, improves readability and provides some informity in the generated web pages.


Constructor Index

 o Header()

Method Index

 o printFooter(PrintWriter)
A method for printing footer on each page.
 o printGroupMail(PrintWriter)
Methods are used for printing ACTION on `GroupMail` servlet.
 o printHead(String, String, PrintWriter)
Method to print the header of a page.
 o printMain(PrintWriter)
Methods are used for printing ACTION on `Main` servlet.
 o printPage(String, PrintWriter)
Method to print a specified html file on to the specified printwriter.
 o printQuery(PrintWriter)
Methods are used for printing ACTION on `Query` servlet.
 o printRegister(PrintWriter)
Methods are used for printing ACTION on `Register` servlet.
 o printStat(PrintWriter)
Methods are used for printing ACTION on `Stat` servlet.

Constructors

 o Header
 public Header()

Methods

 o printHead
 public void printHead(String intitle,
                       String head,
                       PrintWriter out)
Method to print the header of a page.

Parameters:
intitle - Title of the page
head - Part of the Page to be inserted between HEAD tags
out - PrintWriter instance
Returns:
Nothing
 o printMain
 public void printMain(PrintWriter out)
Methods are used for printing ACTION on `Main` servlet.

Parameters:
out - PrintWriter
Returns:
Nothing
 o printRegister
 public void printRegister(PrintWriter out)
Methods are used for printing ACTION on `Register` servlet.

Parameters:
out - PrintWriter
Returns:
Nothing
 o printQuery
 public void printQuery(PrintWriter out)
Methods are used for printing ACTION on `Query` servlet.

Parameters:
out - PrintWriter
 o printStat
 public void printStat(PrintWriter out)
Methods are used for printing ACTION on `Stat` servlet.

Parameters:
out - PrintWriter
Returns:
Nothing
 o printGroupMail
 public void printGroupMail(PrintWriter out)
Methods are used for printing ACTION on `GroupMail` servlet.

Parameters:
out - PrintWriter
Returns:
Nothing
 o printPage
 public void printPage(String Filename,
                       PrintWriter out) throws FileNotFoundException, IOException
Method to print a specified html file on to the specified printwriter.

Parameters:
Filename - The .html file from which PrintWriter extracts
out - PrintWriter instance
Returns:
Nothing
 o printFooter
 public void printFooter(PrintWriter out)
A method for printing footer on each page.

Parameters:
out - PrintWriter
Returns:
Nothing