Class FacultySession

java.lang.Object
   |
   +----Session
           |
           +----FacultySession

public class FacultySession
extends Session
A class to handle the login session of a faculty.


Constructor Index

 o FacultySession()

Method Index

 o changeStatus(HttpServletRequest, Connection)
Method to change the status of the thesis after approval.
 o gen_form(ResultSet, PrintWriter, String)
Method to generate the page of all the students under the page.
 o insData(HttpServletRequest, Connection, PrintWriter)
 o printPage(Connection, PrintWriter, HttpServletRequest, String)
Method to print the page corresponding to various situations.
 o printRespectivePage(String, PrintWriter)
Open the file with name Filename and just print the contents of it
 o printStudentInfo(HttpServletRequest, PrintWriter, Connection)
Method to print the info about a particular student.
 o printTypes(PrintWriter, Connection)
Method to print the list of various students under this prof.
 o printUpdatePage(Connection, PrintWriter)
Method to print the welcome page for the faculty.
 o processData(HttpServletRequest, Connection, PrintWriter)
Method to Process the data from the corresponding form!!!
 o search(HttpServletRequest, Connection, PrintWriter)
A method to search for all the students doing a thesis of specified type under this prof.

Constructors

 o FacultySession
 public FacultySession()

Methods

 o printPage
 public void printPage(Connection Conn,
                       PrintWriter out,
                       HttpServletRequest Req,
                       String cook)
Method to print the page corresponding to various situations.

Parameters:
Conn - Connection instance
out - PrintWriter instance
Req - HttpServletRequest instance
Returns:
Nothing
Overrides:
printPage in class Session
 o printUpdatePage
 public void printUpdatePage(Connection Conn,
                             PrintWriter out)
Method to print the welcome page for the faculty.

Parameters:
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
Overrides:
printUpdatePage in class Session
 o printTypes
 public void printTypes(PrintWriter out,
                        Connection Conn)
Method to print the list of various students under this prof.

Parameters:
out - PrintWriter instance
Conn - Connection instance
Returns:
Nothing
 o processData
 public void processData(HttpServletRequest Req,
                         Connection Conn,
                         PrintWriter out)
Method to Process the data from the corresponding form!!!

Parameters:
Req - HttpServletRequest instance
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
Overrides:
processData in class Session
 o insData
 public void insData(HttpServletRequest Req,
                     Connection Conn,
                     PrintWriter out) throws SQLException, FileNotFoundException, IOException
 o changeStatus
 public void changeStatus(HttpServletRequest Req,
                          Connection Conn) throws SQLException
Method to change the status of the thesis after approval.

Parameters:
Req - HttpServletRequest instance
Conn - Connection instance
Returns:
Nothing
 o printRespectivePage
 public void printRespectivePage(String Filename,
                                 PrintWriter out) throws FileNotFoundException, IOException
Open the file with name Filename and just print the contents of it

Parameters:
Filename - Name of the filename
out - PrintWriter
Returns:
Nothing
 o search
 public void search(HttpServletRequest req,
                    Connection Conn,
                    PrintWriter out)
A method to search for all the students doing a thesis of specified type under this prof.

Parameters:
req - HttpServletRequest instance
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
 o gen_form
 public void gen_form(ResultSet res,
                      PrintWriter out,
                      String Type)
Method to generate the page of all the students under the page.

Parameters:
res - ResultSet instance
out - PrintWriter instance
Type - Type of the theses
Returns:
Nothing
 o printStudentInfo
 public void printStudentInfo(HttpServletRequest req,
                              PrintWriter out,
                              Connection Conn)
Method to print the info about a particular student.

Parameters:
req - HttpServletRequest instance
out - PrintWriter instance
Conn - Connection instance
Returns:
Nothing