I wonder would this solve your problem??
-----Original Message----- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:32 PM To: Tomcat Users List Subject: Re: servlet question Michael, If I forward to a servlet, yes I can process the request in second servlet. ----- Original Message ----- From: "Tam, Michael" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 27, 2003 4:13 PM Subject: RE: servlet question I am not possitive. I am not familiar with flash but can you process your post data in servlet 1 and form an url with parameters attached and then redirect? -----Original Message----- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 3:58 PM To: Tomcat Users List Subject: Re: servlet question My code is doing this way already, but it does not work.You think the method will change if I forward the "POST" request inside doGet(). ----- Original Message ----- From: "Tam, Michael" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 27, 2003 3:44 PM Subject: RE: servlet question Just a wild guess, how about servlet 1 doPost() call its own doGet() and redirect in the doGet body??? -----Original Message----- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 3:41 PM To: Tomcat Users List Subject: Re: servlet question Thank you for the help. I think you may misunderstand my question. My question is how can I forward the request to my next URL and change the method to 'GET' if the orignal request is using 'POST'. For example: test1.html call servlet1 by using "POST" method, but servlet1 need to forward to servlet2 by using "GET". How can I switch from "POST" to "GET" in servlet1. thanks ----- Original Message ----- From: "Jose Euclides da Silva Junior - DATAPREVRJ" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 27, 2003 3:26 PM Subject: RES: servlet question try doGet() instead of doPost(). good luck. -----Mensagem original----- De: Paul Hsu [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 27 de maio de 2003 19:27 Para: [EMAIL PROTECTED] Assunto: 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] --------------------------------------------------------------------- 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] --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]