On Thu, Mar 11, 1999 at 01:24:28AM +0200, Oguz Baktir wrote:
> Hello friends!
> I'm developing a servlet that makes a connection with a DB. To send the
> parameters from the client I use a form on the client side. On the server
> side I use a doPost() method to get the parameters.
> Now, after getting params, I need to handle them somehow, make a connection
> to the DB and retrive/write the results from/to the DB. Where will I do all
> these?
> To sum up, can I merge service() and doPost() to one method, or otherwise
> how and for what will I use them?

        In HttpServlet, service() calls doGet(), doPost(), etc, as
needed; don't implement your own service()!

        This means you can do everything in doPost(). You could even
do different things depending on whether the servlet received a GET
or a POST. Check the javadoc information for
javax.servlet.http.HttpSerlvet for more information.

--
Robert Crawford                 [EMAIL PROTECTED]
http://www.iac.net/~crawford

___________________________________________________________________________
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