This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes from a applet how can i call a servlet?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "from a applet how can i call a servlet??" Watch "from a applet how can i call a servlet??" New topic

from a applet how can i call a servlet??

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
from a applet how cani call a servlet??and how is the communication is done between an applet and a servlet??
how can i call a applet from a java script??
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
using sockets, u can communicate with the Servlet.
Jason Hunter's book Java Servlets has a really Exhaustive material on Applet Servlet Communication...

Of course u might have to roll u'r own Protocol to really do somehthing usefull once u'r applet starts communicating with the Servlet.
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2591

You can also use URLConnection if servlet is so designed and deployed. Since applet and servlet both speak Java, perhaps you can communicate in terms of Java objects.
- Manish
marko stone

Joined: Oct 16, 2002
Posts: 23
i used URLConnection
I agree. Here's the link:
subject: from a applet how can i call a servlet??
It's not a secret anymore!