nl.knowledgeplaza.wps
Class FileUploadLeerlingImport

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by nl.knowledgeplaza.wps.FileUploadLeerlingImport
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FileUploadLeerlingImport
extends javax.servlet.http.HttpServlet

Version:
$Revision: 1.3 $
See Also:
Serialized Form

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
FileUploadLeerlingImport()
           
 
Method Summary
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Stores the uploaded file in the vault and adds a record to the database.
 void init()
          Sets up the JDBC connection as specified in the parameters in web.xml.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

FileUploadLeerlingImport

public FileUploadLeerlingImport()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Sets up the JDBC connection as specified in the parameters in web.xml. Holds the connection in an instance variable.

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws IOException,
                      javax.servlet.ServletException
Stores the uploaded file in the vault and adds a record to the database.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
IOException
javax.servlet.ServletException


Copyright © 2011 InnovationInvestments. All Rights Reserved.