It is easy.


public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
    ................//your code
}

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
    doGet(request, response);
}

----- Original Message -----
From: Denis Bucher <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 16, 2000 10:44 AM
Subject: post AND get ?!!


> Hello !
>
> Do you see how it would be possible to have a servlet handling POST and
GET
> requests exactely the same way ? How should I do it ?
>
> Thanks a lot !
>
> Denis
>
> --
>
> Denis Bucher,   /  [EMAIL PROTECTED]       T�l. +41-22-8000625   \  Internet
> Horus Networks /  horus-networks.com    Fax: +41-22-8000622   \  Services
>               /  http://www.horus.ch   US Fax: (508) 437-1261  \  Provider
>
>
___________________________________________________________________________
> 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