C
carl.manaster
I have an applet and servlet talking to one another through a
UrlConnection. I've been sending Strings across without problems.
My applet's connection initialization code includes this line:
connection.setRequestProperty("Content-Type",
"application/octet-stream");
I am now trying to send different kinds of Serializable objects through
the connection. I have seen a number of examples that say to use
"java-internal/" + obj.getClass().getName()
in place of "application/octet-stream" in my call to
setRequestProperty(), and I'll try that, but I don't see any sign on
the servlet side that this information is being used. Is this simply a
convention, or does it hold some meaning that actually gets used by the
servlet? If it holds meaning, then why was my code working with
Strings?
Thanks for any clarification or references.
UrlConnection. I've been sending Strings across without problems.
My applet's connection initialization code includes this line:
connection.setRequestProperty("Content-Type",
"application/octet-stream");
I am now trying to send different kinds of Serializable objects through
the connection. I have seen a number of examples that say to use
"java-internal/" + obj.getClass().getName()
in place of "application/octet-stream" in my call to
setRequestProperty(), and I'll try that, but I don't see any sign on
the servlet side that this information is being used. Is this simply a
convention, or does it hold some meaning that actually gets used by the
servlet? If it holds meaning, then why was my code working with
Strings?
Thanks for any clarification or references.