• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Applets with more relaxed security?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic