Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP! Whats wrong with this?

 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code calls an applet & sends a hashtable to the applet.
This will not work - it seems as if the applet never gets called. However, no exceptions/errors are raised!
The code works if I create hastable & only add one hash pair to it - does this mean that there is a limit on the size that can be sent to the applet?

ObjectOutputStream output = new ObjectOutputStream(m_httpResponse.getOutputStream());
output.writeObject(m_hshData);
output.writeBytes("<APPLET CODE='DavesApplet.class' ARCHIVE='DDavesApplet.jar' WIDTH=0 HEIGHT=0 CODEBASE='/BEAT/applet/'>");
output.flush();
output.close();
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me get this straight - you are writing both a Hashtable object (binary) and the HTML code for an APPLET tag (text) to the response? What are you trying to do?
Bill
 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies William,
I have solved the problem!
What I was trying to do was pass the hashtable from the Servlet to the applet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic