// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov  Date: 8/28/2009 12:37:37 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   Data.java

import java.io.IOException;
import java.sql.*;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.*;

public class Data extends HttpServlet
{

    public Data()
    {
        con = null;
        pst = null;
        rs = null;
        st = null;
    }

    public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
        throws ServletException, IOException
    {
        httpservletresponse.setContentType("text/plain");
        ServletOutputStream servletoutputstream = httpservletresponse.getOutputStream();
        try
        {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            con = DriverManager.getConnection("Jdbc:Odbc:JDSN", "scott", "tiger");
            servletoutputstream.println("Connected!!!");
        }
        catch(Exception exception)
        {
            servletoutputstream.println(exception.toString());
        }
    }

    Connection con;
    PreparedStatement pst;
    ResultSet rs;
    Statement st;
}