Well there are some different things you could do. One could be just
mapping them(the applications) with diffrent filters. The same goes with
your spring context.
And you could control which stylesheets should be used by different
header contributors, and injected spring context. That should solve your
use case.
You could also have seperate applications for it, making apache redirect
them. Or you could have apache redirect to a sub url, like
http://texashuntingfish would goto http://internalserverip/texas and
http://internalserverip/mexico etc.. lots of possibilities:)
Jeremy Thomerson wrote:
Has anyone done this and might have suggestions?
What I want to be able to do is have multiple applications all running
within one context. They will basically be different versions of the same
site, with some differences in style, and occasionally HTML. Other things,
like sections of the site, could be turned on or off for that site by Spring
configuration since I'm using it to configure the middle-tier. Basically, I
want to be able to have something like texashuntfish.com, and also
newmexicohuntfish.com running in the same space, only differentiated by the
URL...
So, it will need to support (per site):
- different CSS files / images
- occasionally different HTML
- different Spring contexts
I figure the best way to do this would be early in the request (before any
user code is touched), call Session.setStyle("thesitecode"); I believe this
gives me all of the CSS / images / HTML differences for free. Somewhere in
there, I will need to set the current site in something like
ApplicationContext.getSite(), using a ThreadLocal, I guess.
Has anyone done something like this or have suggestions before I just start
experimenting? Other considerations?
Thanks,
Jeremy Thomerson
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]