Jimmy wrote:
> Instead of ...
> AjaxAnywhere.getAJAX("http://localhost:10001/webapp2",
> "zoneInJsp1Webapp1");
>
> It should be ...
> AjaxAnywhere.getAJAX("http://localhost:10002/webapp2",
> "zoneInJsp1Webapp1"); // didn't actually send request to webapp2
No, it should not. I wrote what I wrote on purpose.
> webapp2 is running in different instance of Tomcat (different port on
> localhost) than webapp1.
Which is what matters. However, URL rewrite allows you to access a resource
with another port (or protocol, host name, or path) than the retrieved
resource is usually available at.
> How come different port on the same domain doesn't work?
It is all the same problem. The Same Origin Policy imposes that protocol,
second-level domain (and, it appears, with XHR even the host name as
document.domain has no meaning for that), and port number of the request URI
be the same to grant access from one resource to another. I (and others)
have explained that (to you) numerous times before. RTFFAQ.[1]
As I have explained and made a polite request to you repeatedly that you
quote the relevant parts of what you are replying to, as I (and others) have
demonstrated to you numerous times now. I will not ask you again.
PointedEars
___________
[1]
http://jibbering.com/faq/
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee