Hi everybody, I need to save an Java Object (List or hashmap) to the server so I can load it later If required.
My first attempt looks like this: ArrayList<String> al = new ArrayList<String>(); URL url; try { url = new URL("http://127.0.0.1:8888/Resources/test.obj"); URLConnection urlc = url.openConnection(); BufferedOutputStream buf = new BufferedOutputStream(urlc.getOutputStream()); ObjectOutputStream os = new ObjectOutputStream(buf); os.writeObject(al); buf.close(); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); But the file on the server is not created. Also no error is thrown. Can porbaby anybody help me? Any support will be highly appreciated ;) Best regards Uli -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.