* I guess Applet-Servlet communication is similar with Application-Servlet
communication.
* normally, it is Appllication-side who starts one Appllication-Servlet communication:
* client First Read style:
in Appllication-side, if we first Read something from Servlet, then no matter
we will continue to Write something to Servlet or not, doGet will be
invoked
* client First Write style:
in Appllication side, if we first Write something to Servlet, then:
- if we don't continue to Read somwthing from Servlet, then neither doGet
now doPost will be invoked :-)
- if we continue to Read something from Servlet, then doPost will be invoked :-)
- if we want to Write something, we need: uc.setDoOutput(true), otherwise I
got a java.net.ProtocalException
*
- if we want to Read something, we need: uc.setDoInput(true), otherwise I
got a java.net.ProtocalException
- if we want to Write something, we need: uc.setDoOutput(true), otherwise I
got a java.net.ProtocalException
* we can use both URLConnection and HttpURLConnection. but I remember
HttpURLConnection is not in NN4.7 and IE4.x(perhaps I remember wrong)