you can make your entire application url aware, that shouldnt really
be a problem. i think you will run into interesting things when trying
to have two spring contexts share a single servlet context though.
-igor
On Fri, Apr 25, 2008 at 9:04 PM, Jeremy Thomerson
<[EMAIL PROTECTED]> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]