could it possible that i directly (not through servlet) connect my applet to the database ?
Peter den Haan
Joined: Apr 20, 2000
Well, yes and no. Nothing stops you from using JDBC in your applet and accessing a database on the same server - nothing, that is, except the firewalls that are likely to sit between the user and your database server. Which means that you really need to tunnel it over HTTP, which in turn is likely to make you go full circle back to servlets again... Take a look at javax.sql.WebRowSet, part of the JDBC 2.0 optional extensions. - Peter
Joined: Nov 07, 2000
"dwivedi_sachin5", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks. Sean
Joined: Oct 10, 2001
yes..u can connect ur applet directly to ur database but the high security model that java has is likely to cause some problems during run time. I guess itz okay to connect ur applet to ur database prvided the applet is fairly simple/elementary though I'd recommend the use of servlets!