This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes How does Applets communicate with server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How does Applets communicate with server?" Watch "How does Applets communicate with server?" New topic
Author

How does Applets communicate with server?

Tejas Jain
Ranch Hand

Joined: Mar 04, 2008
Posts: 119
What protocol it use? Can I use RMI or socket within applet?


"Knowing is not enough, you must apply... Willing is not enough, you must do."
--Bruce Lee
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41076
    
  43
Applets can use any communication channel any Java code can use - HTTP, sockets, web services, JMS, email, RMI, ...

Of course, an applet are only allowed to connect to the host where they were served from, so if they need to access some other server then they'll need to be signed, or the local security policy altered. See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How does Applets communicate with server?
 
Similar Threads
Converting Xml to Java Object
Splitig integers
not equal too & or operator????
Posting to bump up my count...
Constructing overloading