Here is the way I understand things:

I would not use the service method, and only use doGet and doPost.

As a general convention, I would do this:

I would use doGet if providing data to the server which does not has for purpose
to write to the database (say getting data from a customer profile)

I would use doPost if the client wants to store / update database information
(say creating a new customer profile...)

On thing: passing data using doGet is visible in the URL.  Say you want to pass
confidential data, use doPost, at least it's not going to be visible on the URL.

Jean


Babar Bhutta wrote:

> 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