Hi Roland,

I have read the article you mentioned here, but it did not solve my problem.

Let me explain more about my original question:

I want to develop a servlet that will reside in http://fooo.com/tiger, I
want to use this servlet to do following:
1. collect all the form data from a jsp and 
2. pre-process the form data based on some form element values and 
(the above 2 steps are ordinary)
3. then POST all the request information to an external url:
http://bar.com/shamu. 

Note that I cannot use response.sendRedirect() because there will be huge
data in the jsp form. 
Neither can I use RequestDispatcher.forward(request,response) because it
will forward the request to an external url.


I thought HttpClient is the perfect tool to realize this "redirect with a
POST" problem. But as you said, maybe I need to parse the parameter myself.
This is really not what I want to do in PreSend servlet. At first it seemed
to me very simple: just forward everything in the request object to an
external url, without even knowing what's inside that request.

Thanks,

Han



Roland Weber wrote:
> 
> By the way, the tutorial suggests that it should
> be possible to parse the parameters manually:
> http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets7.html#wp64433
> 
> Have you tried to read from the input stream
> in your servlet?
> 
> cheers,
>   Roland
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/postmethod-does-not-work-tf4719655.html#a13511534
Sent from the HttpClient-User mailing list archive at Nabble.com.


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

Reply via email to