2 ways;

1. Have *only* a service method.
2. Redirect the get() to the post().
e.g.

public void doPost(HttpServletRequest req,
HttpServletResponse res) {
  // Do Work Here
}

public void doGet(HttpServletRequest req,
HttpServletResponse res) {
  doPost(req, res);
}

//Nicholas

--- Denis Bucher <[EMAIL PROTECTED]> 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 !
>
> 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
>

=====
"Piper, Piper the red red worm
awoke last night to the sound of the storm
the words are the words I sailed upon."
Piper, Phish

--
Nicholas Whitehead
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

___________________________________________________________________________
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