Denis Bucher wrote:

> 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 !
>

public class MyServlet extends HttpServlet {

    ...

    public void doGet(HttpServletRequest req,
      HttpServletResponse res) throws IOException, ServletException {

        doPost(req, res);

    }

    ...

    public void doPost(HttpServletRequest req,
      HttpServletResponse res) throws IOException, ServletException {

        ... do the processing ...

    }

    ...

}


>
> Denis
>

Craig McClanahan

___________________________________________________________________________
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