Class Upload

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----Upload

public class Upload
extends HttpServlet
This servlet is used by the AuthorServlet to upload/re-upload papers.


Constructor Index

 o Upload()

Method Index

 o init(ServletConfig)
Initialise the servlet Open a database connection and get the attributes of the PERSON,PARTICIPANT tables
 o service(HttpServletRequest, HttpServletResponse)
Uploads the paper - id it if the first time it is being uploaded then extracts the filename from the database, else it accepts it from the calling servlet..

Constructors

 o Upload
 public Upload()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Initialise the servlet Open a database connection and get the attributes of the PERSON,PARTICIPANT tables

Parameters:
config - ServletConfig
Overrides:
init in class GenericServlet
 o service
 public void service(HttpServletRequest httpservletrequest,
                     HttpServletResponse httpservletresponse) throws ServletException, IOException
Uploads the paper - id it if the first time it is being uploaded then extracts the filename from the database, else it accepts it from the calling servlet..

Parameters:
HttpServletRequest - httpservletrequest
HttpServletResponse - httpservletresponse
Overrides:
service in class HttpServlet