Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 898349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:01:44+00:00 2026-05-15T15:01:44+00:00

Im building a Grails app that will have multiple similar websites (each it’s own

  • 0

Im building a Grails app that will have multiple similar websites (each it’s own domain name) with the same code but different design and configuration. (think of blogger)

What is the best method for using different view and even some different logic on a single app without too much hacking?

I’m new to Grails and the method I have in mind is to check all the time to see what the domain name is and to serve the right controller/view. Is there a better way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:01:45+00:00Added an answer on May 15, 2026 at 3:01 pm

    I would have a go with the MultiTenant plugin. You mention that views and logic differ, but I’m guessing what will differ most is the data? Use MultiTenant to cleanly separate the data for each site without too much hazzle, and if you store the configuration of views and logic in the DB you get that unique per site as well.

    I think MultiTenant is being updated to the latest Grails release, at least I’ve seen that mentioned in the Grails mail list. I think you need to use an 1.2 release until then.

    I’m doing something similar to separate data using the Hibernate Filter plugin. My views are the same but I have per-site texts and messages by looking up message “SITE-A.hello.world” first and if not found the default message “hello.world” is retrieved. Just to give you an idea how views may be customized, though you probably need to take it further than that for your system…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building out a Grails app and realize that a lot of custom stuff
Building an inventory system. I have lots of products and each product has three
Hey all- I'm working on some web flows for a Grails app we're building.
We have an application in Grails 2.0 that we have working when we run
All, I am trying to test my grails app using Hudson. I have in
I'm building a simple Grails app for a web development class. For the most
I am building a grails-app with IntelliJ 9.0 and I am a huge fan
Building a quick view that will display a list of all days but only
I'm building a Grails (1.3.4) app configured with the grails plugin tomcat-1.3.4 and using
Building a Silverlight 5 app that runs in the browser but getting some nagging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.