回复: Java Applet can not communicate with Java Servlet

2013-04-30 Thread qingtao peng
, qingtao peng wrote: > uc.setRequestProperty("Content-type","application/xwww-form-urlencoded"); I > think you want: application/x-www-form-urlencoded > res.setContentType("text/html;charset=GB2312"); Why not use UTF-8 like you did in the Applet? What y

Java Applet can not communicate with Java Servlet

2013-04-29 Thread qingtao peng
  I have built the apache-tomcat-7.0.32 server on my computer.My operating system is Windows7.I have written  an Applet and compiled it .The  source code of the Applet is as follow : import java.awt.*; import java.applet.*; import java.awt.event.*; import java.io.*; import java.net.*; public cla