invoking jsp from another domain

I need to invoke a jsp file (called getpref.jsp) which exists in Web Site 1 from a file (called invoker.jsp) in Web Site 2. It seems like I can't do a jsp:include with an external url as the source. How do I go about doing this?Thanks.
[250 byte] By [ran123a] at [2007-10-3 0:41:03]
# 1

Correct. jsp:include can only be used on an internal resource.

The JSTL <c:import> tag will do this for you. However, the code will still be running on website 2, and all website 1 gets is the result of running that code.

Another way is to use the java.net classes directly, and open your own HTTPConnection to WebSite2. The <c:import> tag does this under the hood anyway.

Hope this helps,

evnafets

evnafetsa at 2007-7-14 17:35:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I'm not sure if my webhost supports JSTL. Any other solution? I tried the Ajax XMLHttpRequest.open() method. But the open() method requires the file/resource to be from the same domain.
ran123a at 2007-7-14 17:35:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...