Meaningless Drivel is fun!*
The moose likes Applets and the fly likes passing values from servlet to Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "passing values from servlet to Applet" Watch "passing values from servlet to Applet" New topic
Author

passing values from servlet to Applet

Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 157
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
Couldn't you use the servlet response for that?
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 157
I tried but getting the error, "java.io.StreamCorruptedException: invalid stream header: 31526F77"
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
How are you trying to read the HTTP response? Show us the code.
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 157
Issue got solved by adding this piece of code.


 
 
subject: passing values from servlet to Applet