• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet to servlet communication

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sending an object from an applet to a servlet using URLConnection. My servlet is able to read the object sent from the applet. Now the servlet should display the contents of the object to the browser which is not happening.
Someone suggest me a solution.
 
AnandGattu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi srinivas,
you cannot display the contents from servlet to the browser directly after receiving the data from an applet .
again you have to sendback the data to an applet using I/O streams.After reading the data in an applet ,show the content
in the browser using getAppletcontext().showdocument() or
redirect the URL.
from
Anand
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic