Hi folks ,
When I compile the servlet ,no error.
But When I open it in the browser nothing coming and when I see the viewsource following error is coming.
plese help
san
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;

public class Demo1 extends HttpServlet
{
ResultSet rs;

Statement stmt;
Connection con;
/*public void init(ServletConfig config) throws ServletException
{
super.init(config);


}

public void destroy()
{

super.destroy();
}*/

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
resp.setContentType("text/html");
PrintWriter out = new PrintWriter(resp.getOutputStream());

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbcdbc:PERDET");
stmt = con.createStatement();

rs = stmt.executeQuery("select * from EMPLOYEE");

out.println("<HTML>");
out.println("<HEAD><TITLE>Employee details</TITLE></HEAD>");
out.println("<BODY>");
out.println("asdfasdf");
//out.close();
out.println("<UL>");

while(rs.next())
{

out.println("<LI>" + rs.getString("NAME") + " "+rs.getString("SALARY")+ " " +rs.getString("DOB"));
}
out.println("</UL>");

out.println("</BODY>");
out.println("</HTML>");
out.close();
} catch(Exception e) {e.printStackTrace();}

finally
{
try
{
if (con != null) con.close();

}catch (Exception e) {e.printStackTrace();}

}
}


}