Hm, why do you wrap the xml-string into an ObjectOutputStream?????? Simply write back xml as direct servlet result. A servlets result must not necessarily be html. This approach works for Flash-Frontends and therefore for applets to! On applet side you can use HttpUrlConnection to call servlet.
Peter ----- Original Message ----- From: "Godbey, David" <[EMAIL PROTECTED]> Date: Thursday, November 15, 2001 3:52 pm Subject: Stream XML from servlet to applet > What is best way to do this? > > On servlet side, I create an ObjectOutputStream and put the XML > string on it > (Oracle query generates XML through OracleXMLQuery class). > > On applet side, I create an ObjectInputStream, readObject with > casting to > String. This works fine until the XML string reaches a certain > size, then > the applet breaks, throwing a java.io.EOFException. > > Why does it break? If I use PrintWriter and stream the data > straight to my > browser, it works fine, so no problem on the Oracle query side. > > What is better way to stream XML between applet and servlet? > > Thanks, > Dave > > ________________________________________________________________________ ___ > To unsubscribe, send email to [EMAIL PROTECTED] and include in > the body > of the message "signoff SERVLET-INTEREST". > > Archives: http: > Resources: http://java.sun.com/products/servlet/external- > resources.htmlLISTSERV Help: > http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
