You may want to look at plugging it in using an AJP connector, which is
a webserver plugin which talks to your Tomcat JVM across TCP/IP using a
proprietary protocol. I've only done this with Apache, but they
apparently exist for IIS and iPlanet too.
http://jakarta.apache.org/tomcat/tomcat-4.0-d
In simplest terms, a response forward sends control to something in the same
context and the forwarded, a response rediect can go to something outside
the context. The technical difference is that a forward is done entirely on
the server, wheras a redirect sends the redirect command to the clie
Look at JSTL's tag. If you don't do posts (or images) - it might
be enough of a quick kludge.
For example, call this page cowbell.jsp:
--
<%@ taglib uri="http://java.sun.com/jstl/core/c.tld"; prefix="c" %>
http://otherserver${pageContext.request.requestURI}"/>
--
Then in web.xml:
fever
route across the firewall.
Wendell
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:53 AM
To: Tomcat Users List
Subject: RE: Possible to forward a request to another server?
Hi,
Like HttpServletResponse#sendRedirect? It's not l
Hi,
Like HttpServletResponse#sendRedirect? It's not like a forward in that
the client URL changes, but it does pass the request to another server.
Beyond that, you COULD write something that'd wrap the request, invoke
another server to handle it, and stream the response to your own client.
Yoav