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"); 
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact