hi
i am trying to use database in servlet..in the following program i am receiving an error
SQLException caught:No data found

import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class DBPhoneLookup extends HttpServlet{
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
Connection con=null;
Statement stmt= null;
ResultSet rs = null;
res.setContentType("text/html");
PrintWriter out=res.getWriter();
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:Access");
stmt=con.createStatement();
rs=stmt.executeQuery("SELECT NAME,ADDRESS FROM CUSTOMER");
out.println("<HTML><HEAD><TITLE>PhoneBook</TITLE></HEAD>");
out.println("<BODY>");
out.println("<UL>");
while (rs.next()){
out.println("<LI>"+rs.getString("NAME")+" " +rs.getString("address"));
}
out.println("</ul>");
out.println("</body></html>");
}
catch(ClassNotFoundException e)
{
out.println("Couldn't load database driver:"+e.getMessage());
}
catch(SQLException e)
{
out.println("SQLException caught:"+ e.getMessage());
}
finally{
try{
if(con!=null)con.close();
}
catch(SQLException e1)
{
}

}
}
}





please help