This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 136
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: 136
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: 136
Issue got solved by adding this piece of code.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing values from servlet to Applet
 
Similar Threads
how to startup servlet from applet
from a applet how can i call a servlet??
Redirect from servlet to html (or php) web?
how to startup servlet from applet code
POST method