Class StudentSession

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

public class StudentSession
extends Session
Class to handle the student session. It handles the facilities provided to the student such as updation of tuples.


Constructor Index

 o StudentSession()

Method Index

 o getFile(HttpServletRequest, Connection, PrintWriter, String)
Method to retrieve the thesis from the gievn URL
 o insData(HttpServletRequest, Connection, PrintWriter, String)
Method to insert the data in database
 o printPage(Connection, PrintWriter, HttpServletRequest, String)
Method to print a Page
 o printRespectivePage(String, PrintWriter)
Method to open file and print it to a PrintWriter
 o printTypesList(PrintWriter, Connection)
Method to Html-ise the types list
 o printUpdatePage(Connection, PrintWriter)
Method to print the updated page
 o processData(HttpServletRequest, Connection, PrintWriter)
Method to process the data
 o upDate(HttpServletRequest, Connection, PrintWriter)
Method to update the data in database

Constructors

 o StudentSession
 public StudentSession()

Methods

 o printPage
 public void printPage(Connection Conn,
                       PrintWriter out,
                       HttpServletRequest Req,
                       String cook)
Method to print a Page

Overrides:
printPage in class Session
 o processData
 public void processData(HttpServletRequest Req,
                         Connection Conn,
                         PrintWriter out)
Method to process the data

Parameters:
Req - HttpServletRequest instance
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
Overrides:
processData in class Session
 o printTypesList
 public void printTypesList(PrintWriter out,
                            Connection Conn)
Method to Html-ise the types list

Parameters:
out - PrintWriter instance
Conn - Connection instance
Returns:
Nothing
 o upDate
 public void upDate(HttpServletRequest Req,
                    Connection Conn,
                    PrintWriter out)
Method to update the data in database

Parameters:
Req - HttpServletRequest instance
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
 o insData
 public void insData(HttpServletRequest Req,
                     Connection Conn,
                     PrintWriter out,
                     String Flag) throws SQLException
Method to insert the data in database

Parameters:
Req - HttpServletRequest instance
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
 o getFile
 public void getFile(HttpServletRequest Req,
                     Connection Conn,
                     PrintWriter out,
                     String thesisfile) throws IOException, MalformedURLException, FileNotFoundException
Method to retrieve the thesis from the gievn URL

Parameters:
Req - HttpServletRequest instance
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
 o printRespectivePage
 public void printRespectivePage(String Filename,
                                 PrintWriter out) throws FileNotFoundException, IOException
Method to open file and print it to a PrintWriter

Parameters:
Filename - Name of File as a String
out - PrintWriter instance
Returns:
Nothing
 o printUpdatePage
 public void printUpdatePage(Connection Conn,
                             PrintWriter out)
Method to print the updated page

Parameters:
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
Overrides:
printUpdatePage in class Session