Multi-branding single web app?

Discussions

Web tier: servlets, JSP, Web frameworks: Multi-branding single web app?

  1. Multi-branding single web app? (4 messages)

    Has anyone come across any good strategies/articles on how to have a single web app serve several different businesses?

    I would like to customize the look and feel for each business but maintain only one code base. To further complicate things, logins are not required.

    Any suggestions?

    Regards,

    Joshua
  2. Multi-branding single web app?[ Go to top ]

    a) take the same code base and export different WARs and substitute images and CSS files while building the war with the application specific when the web apps just should share the same code but are completely separate otherwise

    b) let several domains point to your web app and evaluate the host name/host header of the request to determine which domain the app was called with and judge on that which design to show

    those are just the most simple solutions...

    HTH,
    Thomas
  3. Multi-branding single web app?[ Go to top ]

    Thanks for the reply. I have been toying around with both your ideas. Each have their benefits and drawbacks.

    Has anyone else done something different?

    Joshua
  4. Multi-branding single web app?[ Go to top ]

    Try and generalize the concept of language dependent message resources that you can use for example in Struts. Besides having a key and Locales identifying your resource, add a new key - brand - which would be a value that the client sends to your application.

    Regards,
    Andrei
  5. You can use frames. Keep the Header in the main frame and in the child frame put your webapp content from your application server. Host the landing pages in an external webserver which handles only branding pages (most commonly headers).