Applet与Servlet通讯 (源码) 作者:jdeveloper
Applet source (partly)
...
showStatus(textField1.getText());
URL servlet = new URL(this.getDocumentBase(),"servlet/GetParameterServlet");
URLConnection connection = servlet.openConnection();
connection.setUseCaches(false);
connection.setDoOutput(true);
ByteArrayOutputStream byteStream = new ByteArrayOutputStream(1024);
PrintWriter out = new PrintWriter(byteStream, true);
String postData = "Name=" + URLEncoder.encode...[ 查看全文 ]