doGet maps to the GET HTTP method. doPost maps to the POST HTTP method.
There are inherent differences between the two. Most notable are:

1. GET methods append the data to the URL - ie its visible. POST methods do
not.
2. POST methods do not have a limit to the amount of data that can be sent
from the client to the server.

If you override the serivce method you will also have to handle the other
HTTP request methods: HEAD, OPTIONS, ... (at least I think that's correct,
check HttpServlet implementation).


Chris.

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Babar
> Bhutta
> Sent: 23 December 1999 19:25
> To: [EMAIL PROTECTED]
> Subject: Which Servlet method to use?
>
>
> Hi Everybody,
>                    We are creating Servlets-Java Beans/ EJBs - JSP
> application on windows NT environment. The server we are using is IBM
> Websphere 3.0. I am looking for a answer to know which Servlet
> method (doGet
> / doPost / Service) is most suitable for this kind of environment. I think
> that if we use service method, it can be more useful as it
> response to "get"
> as well as "post" methods. Is there any particular reason to use doGet or
> doPost or service mehtod.
>
> Thank you,
> Babar Bhutta.
> Aptis Software, Austin.
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to