Actually my servlet try to forward a 'POST' request to a Flash program, but
the Flash program cannot process 'POST', so I must forward the request to
Flash with 'GET' method. That is my issue.

----- Original Message -----
From: "Hassan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:45 PM
Subject: Re: servlet question


> if your dispatched request is getting problems because of non compatible
> types of GET/Post methods at collaborating servlets then at the receiving
> end add a dummy method of (Get or Post), whichever is missing, and forward
> the processing to the actual method. For example:
>
> protected void doGet(HttpServletRequest req, HttpServletResponse res)
>           throws IOException, ServletException
>  {
>   doPost(req, res);
>  }
>
> protected void doPost(HttpServletRequest req, HttpServletResponse res)
>           throws IOException, ServletException
> {
> with full implementation
> }
>
>
>
>
> ----- Original Message -----
> From: "Paul Hsu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 27, 2003 11:26 PM
> Subject: servlet question
>
>
> 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.
>
> I would appreciate any help
>
> Paul
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to