Here's the problem: depending on the incoming URL, I want to display a specific landing page and, upon logging in, a specific user experience based on the user's identity.
For example, both www.abc.com and www.xyz.com point to a single instance of Grails that provides portal sharing. If the user arrived via www.abc.com, I want to display the ABC splash page with the login form. If a user arrives through www.xyz.com, I want to display an XYZ pop-up page with a login form.
As soon as the user logs in, I will need to keep the original "brand" context defined by the incoming URL. For example, even through all GSPs, controllers, etc. Shared by all users, ABC users will get their own CSS, resource packages (or records), etc., And the user will have a completely different visual experience than XYZ users.
Is it possible? Or do I need to branch out the application database and host multiple independent portal instances?
source
share