• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applets with more relaxed security?

 
Regina Thomas
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since AJAX has become very popular- with its ability to connect to server side resources from the client browser-- will or has the Java applet follow suit? Maybe it has already, however I cannot find anything that suggests you can now access server side resources like a MySQL database.

Did I miss something?

Regina Thomas
QiSoftware
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets have always been able to do this. Any kind of TCP/IP network connection is possible: JDBC, HTTP, raw sockets etc. The only restriction is that it had to be to the same host where the applet was served from. But that's the case for AJAX as well.
 
Regina Thomas
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You know-- I have never tried the MySQL connection from an applet and assumed it could not be done. What about RSS/XML feeds from servers other than the one the applet was served from?

Q...
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not saying you SHOULD do JDBC in an applet -you positively shouldn't- but it's certainly possible.

Accessing any other host than the originating one requires the applet to be signed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic