Connecting to a database over the internet
Hello ,
Ok heres an interesting question -
I would like to have an applet running on my browser which needs to connect
to a central server over the internet, which in turn will need to connect to a
database and query some results. These results will be stored as flat files within the server.
At the moment, I have an URL that connects to the database via the
internet and that is working. However I don't think my applet on my browser
will be able to create a flat file on that server direclty.
Could some one please tell me how to go about this problem?
Shalini :confused:
[626 byte] By [
Shalz82] at [2007-11-11 8:49:52]

# 1 Re: Connecting to a database over the internet
I guessm, your applet will not work only for the reason, that applets are restricted through security policies and thus not allowed to connect to any other host than the host they were downloaded from.
if you change your security policies for your browser/applet, you have to think of your architecture as follows:
shurely your applet can't remotely create files on a server (until there is a telnet like connection).
what you need is all the businesslogic implemented on the serverside, eg. storing the data into some files can only be implemented on the server.
the server can be invoked through a cgi (servlet,php or perl) and then does the work for you.