Very simple answer to a simple question, try using servlets to connect to your database. In your applet call the servlet by ...
try
{
url = new URL ("http://yourServer:8080/examples/servlet/yourServlet?para="+para2 +);
}
catch(MalformedURLException e)
{
System.out.println("error url " + e.getMessage());
}
catch (IOException e)
{
System.out.println("error io " + e.getMessage());
}
then in your servlet connect to the database by ...
String url = "jdbc

dbc:vigie";
String nom="JAVA";
String pw="JAVA";
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
c = DriverManager.getConnection(url, nom, pw);
}
catch (ClassNotFoundException e)
{
System.out.println(e.getMessage() );
}
catch (Exception ee)
{
System.out.println(ee.getMessage() );
}
I hope this help .... just check out JDBC tutorials on java.sun.com, it helped alot when I started