Where the servlets are? In the same server or different.If they are the same
server or container then forward(request,response) of RequestDispatcher
should serve the purpose, if different then you have to do redirect of
response but will loose your request information you can't pass your info.
Regards,
Chakravarthy
> -----Original Message-----
> From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
> [SMTP:J2EE-INTEREST@(protected)
> Sent: Friday, November 26, 2004 8:58 AM
> To: J2EE-INTEREST@(protected)
> Subject: communication between servlets
>
> hello,
> I create two servlets, for example, called servletA and ServletB.
> As i hope,ServletA gets input from client and pass info to ServletB. and
> then wait until ServletB finishes process these info and return the result
> to ServletA.then ServerletA continue to be excecuted until sending all
> response to client.
> I know Redirect method is not appliable since it will pass the control
> from serverA to ServeletB, as opposed to what i hope that ServerA control
> whole flow.
> I tried to use Dispatcher but it failed. any body can tell me how to solve
> this problem.
> Thanks in advance
> bin
>
>
> _____
>
> Do you Yahoo!?
> The all-new My Yahoo! <http://my.yahoo.com> - What will yours do?
> ==========================================================================
> = To unsubscribe, send email to listserv@(protected)
> body of the message "signoff J2EE-INTEREST". For general help, send email
> to listserv@(protected)".
>
===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".