It's possible if the database is running on the same host from where the applet is served. If that's not the case, then the applet would need to be signed, to allow it to connect to a different host.
It's considered bad design to use JDBC in applets, though, as it opens up the database to anyone connecting over the network. Within a closed network -say, inside of a company firewall- it may be OK, but it's still something to be thought through. If available, use a secure connection (like SSL) in that case.
Thanks for your reply.Then is it possible to do a input form in html and ,when we submit the page it goes to java page and displays the details fetched from database.like in jsp,<form action="name.jsp" method="post" name="ex">.
Joined: Mar 22, 2005
I'm not sure what you mean by "java page ... like in jsp". If you mean a servlet or JSP, then yes, that's possible - very common stuff. That wouldn't involve an applet, though.