• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing values from servlet to Applet

 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm updating database from an applet application through servlet. My problem here is, again from servlet i want to pass a string to applet. How to achieve this.
Thanks in advance.
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Couldn't you use the servlet response for that?
 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried but getting the error, "java.io.StreamCorruptedException: invalid stream header: 31526F77"
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you trying to read the HTTP response? Show us the code.
 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Issue got solved by adding this piece of code.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic