On 28 mai, 04:02, John <[email protected]> wrote:
> I have spent a lot of time on this, and gotten myself totally
> confused.  At this point I'm not even sure how to clearly frame the
> question!
>
> Let me try this:  With Eclipse, and the Google plug in, I create the
> simple "greeter" example.  Now, I deploy on Google AppEngine (Java).
> All goes well.
>
> Now I want to create an HTML page on a totally unrelated domain and
> have the greeter application run on this page.
>
> 1. we add the <linker name="xs"/> to module.gwt.xml
> 2. we change the relative address of the nocache.js to absolute like:
>           
> src="http://location-app.appspot.com/jplocation/jplocation.nocache.js";
>
> All is well, except that the RPC fails, presumably because it can't
> find the location of the servlet.  Perhaps I need to be looking at
> web.xml and tweaking the url-pattern?  However, when deploying to
> AppEngine, it's pretty fussy about what goes in as url-pattern.
>
> Assuming there is some way of doing what I want, how do I hook up with
> the servlet?  Again, hopefully this is helpful: we use a totally
> standard Google Plugin New Application Builder, only the cross-site
> link statement added, and only the one change on the html host page
> (don't care about css at this point).
>
> If you can throw any light on what I'm missing, I would appreciate it.

The "xs" linker only allows you to load a GWT app from another origin
than the HTML host page; but you'll still face the SOP when doing RPC
and/or RequestBuilder, and you'll thus have to put some kind of proxy-
servlet at the same origin than the HTML host page to proxy requests
to the app engine application.
(I'm sure the GWT docs deal with this but I cannot find it... if only
they kept using docreader for the docs...)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to