Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

from a applet how can i call a servlet??

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i used URLConnection
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic