File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes HELP! Whats wrong with this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HELP! Whats wrong with this?" Watch "HELP! Whats wrong with this?" New topic

HELP! Whats wrong with this?

Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
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.writeBytes("<APPLET CODE='DavesApplet.class' ARCHIVE='DDavesApplet.jar' WIDTH=0 HEIGHT=0 CODEBASE='/BEAT/applet/'>");
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12954
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?
Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
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.
I agree. Here's the link:
subject: HELP! Whats wrong with this?