On Tuesday 27 May 2003 06:26 pm, Paul Hsu wrote:
> Hi,
>
> I try to forward a HTTP request from my servlet. I am using the following
> code.
>
> RequestDispatcher rd =
>                     getServletContext().getRequestDispatcher(direct);
> rd.forward(request, response);
>
> I have no problem with code, but I have one issue is how can I change the
> request method from "POST" to "GET" before I forward the original request.

You can't accomplish this using the RequestDispatcher facility. You will have 
to generate a new HTTP request within the servlet and send it to the desired 
destination.

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to