tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Including remote content
Date Tue, 04 Jul 2000 02:46:25 GMT
I don't think that it is possible to include content from a remote server.
You can instead write a short utility that reads some content from a web
page from a remote server by use
of the URLConnection class. You can have the utility read the source of the
HTML page at Tomcat startup (in the init() method of a servlet)  and save it
in a String in the ServletContext. Then you can output that source from
every JSP page without reading from the remote server for every request.

----- Original Message -----
From: Lorin Kobashigawa-Bates <>
To: <>
Sent: Monday, July 03, 2000 8:16 PM
Subject: Including remote content

> Is it possible to include content from a remote server?  I am looking for
> something like RequestDispatcher.include(request, response) for a page
> is on an affiliated site.
> -Lkb
> --------------------------------------------------------------------------
> To unsubscribe, email:
> For additional commmands, email:

View raw message