aspose file tools*
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
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
Author

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??
Anonymous
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: 2578

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.
HTH,
- Manish
marko stone
Greenhorn

Joined: Oct 16, 2002
Posts: 23
i used URLConnection
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: from a applet how can i call a servlet??