We¹ve implemented a similar solution where we have a custom interceptor which sets a domainId value based on the url used to access the site.
It¹s then a simple matter of applying the appropriate processing for each of the domains based on the domainId value. I can tell you from our perspective its great as our app manages about 120 domains on a single app and the client loves it because they a a single interface for all domains. Z. > > Hi folksI'm facing a nice problem and I would be glad to hear from you. I > think it should be useful to all. > > Problem is easy: > Gandalf and I need to build 15 websites one per domain, I really dont want > to maintain 15 different and pretty small projects. > I will be happy to use subdomains, but I couldnt. > > Alternatives: > - A Struts2 project attending 15 websites. > is it possible? Writing my own FilterDispatcher?? > > - Multiple Struts2 project on per domain bundled in a EAR. > I think I will overhead the job. > I dont want to duplicate struts configurations, javascript and > css resources.