All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Utils.HtmlUtils

java.lang.Object
   |
   +----Utils.HtmlUtils

public class HtmlUtils
extends Object

Constructor Index

 o HtmlUtils()

Method Index

 o AdminLoginScreen(PrintWriter, HttpServletResponse)
The following function prints a screen when the user ADMIN logs in.
 o ConvertDate(ResultSet, ResultSetMetaData, String, int)
 o Footer(HttpServletResponse)
 o getcheckbox(ResultSet, ResultSetMetaData)
this function is to generate the checkboxes for delete and update
 o getGroupString(Vector)
this function returns the html tags to get a multivalued checkbox
 o Header(HttpServletResponse)
 o LoginScreen(PrintWriter, HttpServletRequest, HttpServletResponse)
The following function prints a screen when the user logs in.
 o PrintTable(ResultSet, PrintWriter)
This function is for printing the result Set table
 o toHTML(Vector)
 o toHTMLDelete(String, Vector)
 o UpdateTuples(String[][], PrintWriter)
The following function takes a table as a 2-d array and prints a form where the values of the table can be updated.

Constructors

 o HtmlUtils
 public HtmlUtils()

Methods

 o Header
 public static String Header(HttpServletResponse response)
 o Footer
 public static String Footer(HttpServletResponse response)
 o PrintTable
 public static void PrintTable(ResultSet rs,
                               PrintWriter toClient) throws SQLException
This function is for printing the result Set table

 o UpdateTuples
 public static void UpdateTuples(String tuples[][],
                                 PrintWriter pw)
The following function takes a table as a 2-d array and prints a form where the values of the table can be updated.

 o getcheckbox
 public static String getcheckbox(ResultSet rs,
                                  ResultSetMetaData rsmd) throws SQLException
this function is to generate the checkboxes for delete and update

 o LoginScreen
 public static void LoginScreen(PrintWriter toClient,
                                HttpServletRequest request,
                                HttpServletResponse response)
The following function prints a screen when the user logs in.

 o AdminLoginScreen
 public static void AdminLoginScreen(PrintWriter toClient,
                                     HttpServletResponse response)
The following function prints a screen when the user ADMIN logs in.

 o ConvertDate
 public static String ConvertDate(ResultSet rst,
                                  ResultSetMetaData rsmd,
                                  String format,
                                  int i)
 o toHTMLDelete
 public static String toHTMLDelete(String name,
                                   Vector table)
 o toHTML
 public static String toHTML(Vector table)
 o getGroupString
 public static String getGroupString(Vector vec)
this function returns the html tags to get a multivalued checkbox


All Packages  Class Hierarchy  This Package  Previous  Next  Index