dcsimg

What content type do I use when writing an object from an applet to a servlet?

John Zukowski

On your URLConnection, add

conn.setRequestProperty("Content-type", "java-internal/" + hash.getClass().getName()); 
The getClass().getName() is the general way to specify the class, you can hard code the value, like the following....
conn.setRequestProperty("Content-type", "java-internal/java.util.Hashtable");