Re: Java Applet can not communicate with Java Servlet

2013-04-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 4/29/13 11:20 AM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Java Applet can not communicate with Java Servlet > >> The servlet spec says that al

RE: Java Applet can not communicate with Java Servlet

2013-04-29 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Java Applet can not communicate with Java Servlet > The servlet spec says that all servlets need to be in a package. No, it doesn't - but it's still a good idea. - Chuck THIS COMMUN

Re: Java Applet can not communicate with Java Servlet

2013-04-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Peng, On 4/29/13 10:05 AM, 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

Re: Java Applet can not communicate with Java Servlet

2013-04-29 Thread André Warnier
André Warnier wrote: qingtao peng wrote: 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 : ... This compiled Applet has been embedded in a HTML file named wit

Re: Java Applet can not communicate with Java Servlet

2013-04-29 Thread André Warnier
qingtao peng wrote: 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 : ... This compiled Applet has been embedded in a HTML file named with DbApplet.htm. The