Here's the challenge: depending on the incoming URL I want to display a specific landing page and, upon login, a specific user experience based on the identity of the user.
For example, both www.abc.com and www.xyz.com point to a single Grails instance providing a common portal experience. If the user arrived via www.abc.com, I want to display the ABC splash page with login form. If the user arrived via www.xyz.com, I want to display the XYZ splash page with login form.
Once the user logs in, I'll need to keep the original "brand" context as determined by the incoming URL. For example, even through all the GSPs, controllers, etc. are shared by all users, ABC users will pick up their own CSS, resource bundles (or entries), etc. and the user will have a very different visual experience than XYZ users.
Is this possible? Or do I need to branch the application codebase and host multiple independent portal instances?