This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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: 42970
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: 42970
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!