public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{ try { ObjectInputStream ois = new ObjectInputStream(request.getInputStream()); meldung = (String) ois.readObject(); ois.close(); } catch(Exception e){ meldung="oisfehler:"+e;} (...)}
try{ received="try"; repaint(); URL url = new URL("http://www.mycgiserver.com/servlet/beschrifter.SchraubenServlet"); URLConnection servCon = url.openConnection(); servCon.setDoInput(true); servCon.setDoOutput(true); servCon.setUseCaches(false); servCon.setRequestProperty("Content-Type", "application/octet-stream"); ObjectOutputStream oos = new ObjectOutputStream(servCon.getOutputStream()); oos.writeObject((String) "Nachricht vom Aplett"); oos.flush(); oos.close();}...