doGet vs doPost in application-servlet communication

I was confused by the doGet and doPost methods? what's the difference between them in the application-servlet communication?
[132 byte] By [juhaqa] at [2007-9-19]
# 1
If the HTML page that requests the servlet used the GET method, then doGet() will be called. If it used the POST method, then doPost() will be called.
DrClapa at 2007-7-8 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 2

* 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)

juhaqa at 2007-7-8 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 3
http://forum.java.sun.com/thread.jsp?forum=33&thread=251584
joshmana at 2007-7-8 > top of java,Enterprise & Remote Computing,Web Tier APIs...