Campbell wrote:
> <jsp:include file="something.html" flush="true" !> calls a
> relative url... How do you open another site, say
> http://www.jahoo.com for example? Phil
You cannot do this with standard JSP actions -- <jsp:forward> and
<jsp:include> are designed to work within the current web application.
If you wanted to embed the contents of a page on another site, you can
do this with a scriptlet (in JSP), or in a servlet by opening a
URLConnection to the specified URL and copying the contents you retrieve
to your output stream. There are examples of the basic concepts of
doing this in the Java Language Tutorial
(http://java.sun.com/docs/books/tutorial).
Craig McCLanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html