Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Applets and the fly likes applet and server connnection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet and server connnection" Watch "applet and server connnection" New topic

applet and server connnection

Medes Agri

Joined: Jul 07, 2006
Posts: 11
Hello everybody,

I want to do an applet that connects a server , (send and get strings).

I can do applet but I dont know how must an applet connnect to a server,

Must I use socket connection or there is another way to connect a server by an applet?

I mean when you browse to a web page and click a button and it opens an applet and you write a string in a text area and click a button to send your string to a server, what happens ? has this applet used socket connection?

thanks for your response
[ July 07, 2006: Message edited by: Medes Agri ]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41155
Well, it is socket communication, but most likely over HTTP, which is easier than raw sockets. The Applet FAQ has some hints and links to examples on how to connect to a web server.

Ping & DNS - my free Android networking tools app
jQuery in Action, 2nd edition
subject: applet and server connnection
Similar Threads
Applet window opeining without breaking the socket connection
how to communicate Applet to Servet
Unsolicited Responses
What's wrong here!