Hi feroz,
Please ask questions completely( exact problems).
Anyway, Applet is like normal
java class so it can connect to database. But we know applets run at client side. So we have some restrictions about that..
Un signed.
A applet can connect to its downloaded server only.
So in this case if your database server & webserver are same then ur applet can connect to database directly.
if u need more help ask ur question more precisely.