|
@ContextRoot() will get it embedded, might
be easiest just to put that in your Application and have your AS classes pull Application.application.yourContextRootVarDeclaredOnApplication.
Otherwise you could attempt to figure out the context root simply by taking the
value between the first and second slash after the domain. Most webapps get
installed under the domain root as opposed to deeper in the path. Obviously
this depends on your setups and if giving a WAR to a customer you can’t
rely on it. But if you’re in control… Matt From: Is there any way within an AS file to find out the current context
root? Yahoo! Groups Links
|
- RE: [flexcoders] Obtaining context root programmatically? Matt Chotin

