Thank you,
I am talking about 2 different TOMCAT servlet engine instances.
1) Do you have a code example for your proposal?
2) What do you think of this solution?:
a technique (such as response.sendRedirect()) to cross machines (or
even cross web apps)
Axel Lannion/France
> -----Original Message-----
> From: Gokul Singh [SMTP:[EMAIL PROTECTED]]
> Sent: vendredi 18 mai 2001 06:56
> To: [EMAIL PROTECTED]
> Subject: Re: forward a request from servlet1 in TOMCAT1 to a
>servlet2 in TOMCA T2
>
> ----- Original Message -----
> From: "Bartsch Axel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
>
> [snipped]
> > My problem is:
> > If servlet1 and servlet2, servlet1 and jsp2 are located on 2 different
> TOMCAT servlet engines the forward does not work.
> > The RequestDispatcher always expects a path String relative to the root of
> the ServletContext.
> > Does anybody know a solution?
>
> If this is on different contexts on the same engine, then you can look at
> the method ServletContext.getContext(String uri)
>
> If you are talking of another instance of the servlet engine, then you have
> to use the class java.net.HttpUrlConnection to establish connection to the
> required uri on that server.
>
> Regds,
> Gokul
>
>
> >
> > Axel Lannion/France
> >
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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