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

  • Home
  • SEARCH
  • 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 6339197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:36:10+00:00 2026-05-24T19:36:10+00:00

I have a Spring-MVC project which needs to have 2 views for example: views/xxx/…

  • 0

I have a Spring-MVC project which needs to have 2 views for example: views/xxx/… views/yyy/…, I wondering how to determine which view i gonna use based on the domains for example: xxxcom, yyycom.

I know how to make one InternalResourceViewResolver,

but no clues for the multiple views based on the domains.

  • 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-24T19:36:13+00:00Added an answer on May 24, 2026 at 7:36 pm

    Depending on your specific problem, rather than using different views based upon the domain I would go with Spring’s Theme resolver to use the same views then change different parts of that view based upon the domain.

    You can then swap out different bits of styling and content based upon the domain being visited.

    For more information on the Spring theme resolver:

    http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-themeresolver

    After understanding the way to implement themes you would simply have to write a theme resolver that resolved the theme properties file based upon the domain the user has visited.

    Of course if you need completely different views for the different domains you might need a slightly different solution.

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

Sidebar

Related Questions

I'm working on a Spring MVC project, and I have unit tests for all
I have to start a new Spring MVC project and I've been reading about
I'm working on an ASP.Net MVC 3 project, which needs localized error messages from
I basically have the following flow: XML -> JSON -> Spring MVC -> jsp
I am using Spring MVC to build my web application, and I have a
I have a Spring Interceptor which attempts to add an HTTP header in the
We have started using Spring framework in my project. After becoming acquainted with the
I have written a VERY simple MVC application which just displays a single string
I'm currently in a Spring MVC 3 based project, and found out about Apache
We have an MVC web which is running in Autofac. All the config is

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.