It should be easiest with an ObjectOutputStream (around the
Response.getOutputStream), and an ObjectInputStream on the Applet end of
the URLConnection.

On the other hand, you may want to  avoid this. I have heard some horror
stories about the incompatible classes in the various browser JVMs. The
safest way is still to dump the great gobs of primitive + String data
over the connection :)

You *may* be able to get away with it if you cut your own Serializable
data-carrier class, though I have never tried it to see if it will work
any better. I just created my own version of Externalizable
(Transferable), and have been using TransferableInput/OutputStreams ever
since.

Cheers,
Chris

Mark wrote:
>
> For all that have helped in the past, I THANK YOU.
>
> I have one more question.  In passing objects from a Servlet to an Applet,
> where can I find the type of objects that can be passed.  Supposedly Servlets
> are better than CGI because of this particular reason, that Servlets and
> Applets are created with JAVA and communication between them would be much
> smoother.  I successfully sent a String value but nothing else.  Would like to
> send a whole ResultSet containing one record from the servlet to the applet.
>
> Any help would be of great assistance to me.
>
> Thank you,
>
> Marco A. Osuna
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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

Reply via email to