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.
-
StudentSession()
-
-
getFile(HttpServletRequest, Connection, PrintWriter, String)
- Method to retrieve the thesis from the gievn URL
-
insData(HttpServletRequest, Connection, PrintWriter, String)
- Method to insert the data in database
-
printPage(Connection, PrintWriter, HttpServletRequest, String)
- Method to print a Page
-
printRespectivePage(String, PrintWriter)
- Method to open file and print it to a PrintWriter
-
printTypesList(PrintWriter, Connection)
- Method to Html-ise the types list
-
printUpdatePage(Connection, PrintWriter)
- Method to print the updated page
-
processData(HttpServletRequest, Connection, PrintWriter)
- Method to process the data
-
upDate(HttpServletRequest, Connection, PrintWriter)
- Method to update the data in database
StudentSession
public StudentSession()
printPage
public void printPage(Connection Conn,
PrintWriter out,
HttpServletRequest Req,
String cook)
- Method to print a Page
- Overrides:
- printPage in class Session
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
printTypesList
public void printTypesList(PrintWriter out,
Connection Conn)
- Method to Html-ise the types list
- Parameters:
- out - PrintWriter instance
- Conn - Connection instance
- Returns:
- Nothing
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
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
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
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
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