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.
-
Upload()
-
-
init(ServletConfig)
- Initialise the servlet
Open a database connection and get the attributes of the PERSON,PARTICIPANT tables
-
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..
Upload
public Upload()
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
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