I had the same problem, following the example provided at j-nine and the
snippet from J. Hunter's book until last week, when Rob Griffin was kind
enough to point out the solution. Actually my servlets were invoked fine
with IE nut no reaction with NScape. I return the favor by passing on my
recent knowledge to the list:-)

On Fri, 24 Mar 2000, RAD InfoTech wrote:

[snipped descritpion of problem, namely applet cannot send serialized
object to servlet]

>
> <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()

---> put here: conn.connect();

>
> <snip>


According to the specs I have, URLConnection.connect() is abstract void
and other methods should invoke it as approrpiately. It should not be
called from the programmer. Apparently someone at Symantec had a different
opinion on this:-) The addition doesn't affect the Microsoft VM which (at
this point) works according to the spec.

Kostas

___________________________________________________________________________
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