import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

import uk.ac.roe.wfau.stack2string;
/* not currently used
 * 
 * @author mar
 *
 */

public class ArchiveList extends HttpServlet {
  static Logger logger;
  int count=0;
  
  public void init() throws ServletException {
      //super.init(conf);
      logger=Logger.getLogger("wsa.simple");
      logger.debug("ImageList,initailizing Archivelist servlet");
   
  }

  static {

      try {
          Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
          Class.forName("net.sourceforge.jtds.jdbc.Driver");
      } catch (ClassNotFoundException e) {
          // A class not found error means the SQL driver class could not be
          // found.
          // Which means that this driver would not be available until this is
          // remedied. This flag variable will signal this to the class!
          logger.error("ImageList,SQLRetrieverThread::static(): Could not load SQLServerDriver class! "+stack2string.getString(e));
        }
        
  }
  
  
  public void doGet(HttpServletRequest req, HttpServletResponse res)
                               throws ServletException, IOException {

  } // END of doGet

  void doThis(PrintWriter out){
      out.print("BASE");
  }
  protected void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
  {
    // Data received by an HTTP POST is handled the same way
    // as data sent with a HTTP GET request... simply pass on to above...
    doGet(req, res);
    
  }; // END of doPost()

}
