Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

applet and server connnection

 
Medes Agri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!