Hi All,

I have a servlet S1 running on one machine (say Host1). I have another
servlet S2 on another machine (Host2).

A client sends a request(R1) to the servlet S1. S1, after doing validations,
has to forward the request to S2 on Host2.

Can i achieve that using the RequestDispatcher ?

What I have done now --- inside doGet of S1.

try {
        RequestDispatcher dispatch = request.getRequestDispatcher(<url to S2 as a
string>);
        dispatch.forward(request, response);
} catch(Exception ex) {
        // error occurred.
}

Is this the correct approach ? Is there another way of achieving this ?
Please comment.

Warm Regards,
Girish
([EMAIL PROTECTED])
--------------------------------------------------
(Off): +91-80-5716909, +91-80-5715213
(Fax): +91-80-5716908
--------------------------------------------------
Did you iVoice today?
http://www.icope.com/iVoice

___________________________________________________________________________
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

Reply via email to