I don't think this will work because sendRedirect send back a 302 code back the
browser and a url that the browser will follow, no post data is saved.
If i'm wroing please correct me.
Klaus Sonnenleiter wrote:
> The words "for further processing" make me think this may not work for you,
> but here it is anyway: There is a sendRedirect() function that takes the
> name of the target in the Request object. Would that do the trick for you?
>
> Klaus
>
> At 12:07 PM 2/1/01 +0100, you wrote:
>
>> Hi,
>>
>> I have the following problem:
>> a HTTP request is sent by a HTML page (within the browser) to servlet1:
>> in the doPost(HttpServletRequest req, HttpServletResponse resp) of
>> servlet1 this request is treated.
>>
>> Now during code processing servlet1 in some cases handles the sending of
>> the HTTP response himself
>> = normal servlet handling, no problem
>> in some other cases (e.g. in case of error) servlet1 wants the request to
>> be treated by servlet2:
>> so servlet1 would like to send a HTTPrequest (new request or forward of
>> original request) to servlet2.
>> servlet1 would then like to return from its doPost(...) method without
>> sending a HTTP response to the browser; it is servlet2
>> instead that is then responsible for sending the HTTP response to the
>> browser.
>>
>>
--
Vincent Stoessel [EMAIL PROTECTED]
Internet Applications Engineer
IDEV http://www.idev.com
V: 301 495 7345 x129
___________________________________________________________________________
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