Could you embed the information by generating the MXML using a JSP?  I don’t remember if you can access the URL that the browser thinks you are hitting from a JSP if it is really a pass-through from another server.  The JSP might think it’s on the “real” server (192.168…) and not (foo.bar.com).  If not maybe you can do it with _javascript_ on the HTML page since the url in the address bar should have the right info?

 

Sorry, not much help but I’m still having trouble understanding which pieces of info you have access to, don’t have access to, when you would have access to it, and where and when you need that info.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of sbyrne_dorado
Sent: Thursday, June 02, 2005 11:41 AM
To: [email protected]
Subject: [flexcoders] Re: Fun with context roots

 

I don't think I even get to the state of calling services; the main
page (with EMBED, OBJECT, etc) needs to be emitting the pseudo context
root "beta", because URLs from it that it will use to download the
application will need that pseudo context root to get past the web server.

--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote:
> What urls are being generated by the server here, named services?  If
> the urls need to be portable can you use relative urls?  I can
> understand that you want a url on one server to redirect to a different
> url on another server using a different path, but I guess I'm not sure
> how the context root becomes a problem here.
>

>
> Matt
>

>
> ________________________________
>
> From: [email protected] [mailto:[email protected]] On
> Behalf Of sbyrne_dorado
> Sent: Wednesday, June 01, 2005 5:06 PM
> To: [email protected]
> Subject: [flexcoders] Fun with context roots
>

>
> I am wondering if I've stumbled on a limitation of Flex, or if it's a
> limitation of my knowledge (probably the latter).
>
> Here's the situation: I would like to have the ability to have a web
> server dispatch to different app servers based on a "contex root" like
> path prefix.  But, I don't want to have to force each of those app
> servers to have to have the webapp stored under the same context root
> that the web server URLs are using.
>
> More concretely:
>
> On my webserver I want to be able to say
> "http://foo.bar.com/beta/...", and have the webserver redirect that to
> the internal app server URL "http://192.168.1.1/..."; i.e. no "beta"
> context root. 
>
> Can I do this?  I can't seem to get the URLs generated by the server
> to be the "externally visible" form of the URLs (i.e. with the "beta"
> context root) and not have the app server's context root be "beta".
>
> Steve
>
>
>
>
>
> ________________________________
>
> Yahoo! Groups Links
>
> *      To visit your group on the web, go to:
>       http://groups.yahoo.com/group/flexcoders/
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .





Yahoo! Groups Links

Reply via email to