Hi Angelo, My solution didn't end up being elegant or complicated.
Every page has a RqeustGlobals injected into it. And every page has a pageAttached method something like this: public void pageAttached() { . . HttpServletRequest r = _rqstGlbls.getHTTPServletRequest(); setSrvrName( r.getServerName() ); . . } That did the trick! I didn't have to use any kind of dispatcher or request filter. Andy On Tue, 2007-12-18 at 18:51 -0800, Angelo Chen wrote: > Hi Andy, > > Were you able to make it run? any tips on accomplishing this? thanks, > > A.C. > > > Andy Huhn wrote: > > > > All, > > > > I'm writing an app that will make use of virtual hosts (so that > > domain1.com, domain2.org, etc. will all point to the same application). > > The sticky piece is that each page will need to know the hostname by > > which it was referenced--the data displayed on the page will be > > different for each virtual host. > > > > As mentioned here > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]