Class Start
java.lang.Object
|
+----Start
- public class Start
- extends Object
Class invoked everytime one `Make`s the whole package
Does preliminary things such as setting up the Starting page.
It can also be modified to invoke creation of tables. The
method has been written but not invoked because it is not
feasible to drop tables everytime one compiles and starts
Start.java
Assumption : Tables will be created only once in ETD's lifetime.
Institute database will be so large that it is not advisable to
drop tables without backup.
-
Start()
-
-
copyImageFile(String, FileOutputStream)
- Method to copy the Image file to a FileOutputStream
-
createPage(String, DataOutputStream)
- Method to create the starting page
-
createStartPage()
- Method to create the starting page
-
createTables()
- Method to create the tables
-
main(String[])
-
-
printDept(DataOutputStream)
- Method to print FORM ACTION of the starting page with action
pointing to servlet `Dept`
-
printFooter(DataOutputStream)
- Method to create the footer of starting page
-
printHead(String, String, DataOutputStream)
- Method to create the header of starting page
-
printMain(DataOutputStream)
- Method to print the FORM ACTION tag of the starting page
with the action pointing to servlet `Main`
-
printQuery(DataOutputStream)
- Method to print FORM ACTION of the starting page with action
pointing to servlet `Query`
Start
public Start()
main
public static void main(String argv[])
createTables
public static void createTables()
- Method to create the tables
- Returns:
- nothing
createStartPage
public static void createStartPage()
- Method to create the starting page
- Returns:
- nothing
printHead
public static void printHead(String title,
String head,
DataOutputStream dout)
- Method to create the header of starting page
- Parameters:
- title - Title of the page as String
- head - Head of the page as String
- dout - DataOutputStream instance
- Returns:
- nothing
printFooter
public static void printFooter(DataOutputStream dout)
- Method to create the footer of starting page
- Parameters:
- dout - DataOutputStream instance
- Returns:
- nothing
printMain
public static void printMain(DataOutputStream dout)
- Method to print the FORM ACTION tag of the starting page
with the action pointing to servlet `Main`
- Parameters:
- dout - DataOutputStream instance
- Returns:
- nothing
printQuery
public static void printQuery(DataOutputStream dout)
- Method to print FORM ACTION of the starting page with action
pointing to servlet `Query`
- Parameters:
- dout - DataOutputStream instance
- Returns:
- nothing
printDept
public static void printDept(DataOutputStream dout)
- Method to print FORM ACTION of the starting page with action
pointing to servlet `Dept`
- Parameters:
- dout - DataOutputStream instance
- Returns:
- nothing
createPage
public static void createPage(String Filename,
DataOutputStream dout)
- Method to create the starting page
- Parameters:
- Filename - Name of file as String
- dout - DataOutputStream instance
- Returns:
- nothing
copyImageFile
public static void copyImageFile(String Filename,
FileOutputStream fout)
- Method to copy the Image file to a FileOutputStream
- Parameters:
- Filename - Name of file as String
- fout - FileOutputStream instance
- Returns:
- nothing