- From: Olivier Nizet <jiaozi@pop.meloo.com>
- Date: Sun, 18 Jan 2004 17:20:38 -0500 (EST)
- To: www-jigsaw@w3.org
Hi, to send a serialized object from an applet to a servlet, you have to write: URL urlServlet = new URL("a servlet address"); URLConnection conn = urlServlet.openConnection(); conn.setUseCaches(false); conn.setDefaultUseCaches(false); connection.setDoOutput(true); setRequestProperty("Content-Type","application/x-java-serialized-object"); ObjectOutputStream oos = new ObjectOutputStream(conn.getOutputStream()); oos.writeObject(myObject); oos.flush(); // to be sure Hope that help you, Jiaozi ------------------------------------------------- http://www.meloo.com Ce mel a été scanné contre plus de 32 000 virus !
Received on Monday, 19 January 2004 11:52:14 UTC