>Did any one try Serializing an Object and sending it to a servlet using
>URLConnection object ?
Well, we did. Doesn't work for us yet.
We followed a book-example and wrote the applet and servlet.
Applet read couple of textfields, set the properties of the serialized
object
and wrote it to ObjectOutputStream of the URLConnection (pointing to
servlet)
as below:
<snip>
conn.setUseCaches(false);
conn.setRequestProperty("CONTENT_TYPE","application/octet-stream");
conn.setDoInput(true);
conn.setDoOutput(true);
ObjectOutputStream oosOutput =
new ObjectOutputStream(conn.getOutputStream());
oosOutput.writeObject(objSymbol);
oosOutput.flush();
oosOutput.close()
<snip>
We first had a ms security exception and posted it to this forum. We have
received
some helpful hints. We are now trying to see if it works if client runs on a
different machine
than the server.
So far, we are stuck at the point where the applet writes but servlet does
not seem
to get into the act.
We will be happy to know how, when you get it working.
Good Luck,
-- Rali Panchanatham
___________________________________________________________________________
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