Re: Application front door URL
Markus Ruggiero <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On 21.02.2006, at 10:51, Paul Lynch wrote: > If you have access to the WORequest, it has various methods to > provide parts of the url/uri. applicationPrefix(), applicationName > (), uri(), etc. I don't think there is an accessor provided for > the host name part. > That's exactly my problem. I am writing utility classes that need this information but may operate outside of a R-R-Loop. Ideally I'd like to have this info globally available in MyApplication either as a public static String var or method(). Can I simply create a WORequest object out of the blue in the application constructor and it will work? When a WO app starts it prints the application front door URL to the console. So the app knows it but there is no request yet. There are a couple of URL related methods in WOApplication but none gives what I need (eg directConnectUrl() webServerConnectUrl()) Thanks for your help ---markus--- > Paul > > On 21 Feb 2006, at 09:03, Markus Ruggiero wrote: > >> Probably simple, but I cannot find an answer: How can an >> application find out its own front door url? (/cgi-bin/WebObjects/ >> MyApplication), be it direct action or component action. > Markus Ruggiero rucotec consulting and technologies email mailto:[email protected] rucotec GmbH web http://www.rucotec.ch Steinentorstrasse 8 4051 Basel Mobile +41 (0)79 508 4701 Switzerland Phone/Fax +41 (0)61 271 4990 _______________________________________________ WebObjects-dev mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/webobjects-dev