• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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: 43028
76
  • 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: 43028
76
  • 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.
 
Every plan is a little cooler if you have a blimp. And a tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic