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 6654003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:20:16+00:00 2026-05-26T01:20:16+00:00

situation: I have an application that uses separate jsp files for each specific country(I’ve

  • 0

situation:I have an application that uses separate jsp files for each specific country(I’ve implemented with view resolver). However with this approach I have to repeat the jsp changes for each country even if there is no specific change for that page.

example: for users of “en” theme I have different invoice page than users of “de” theme with different layout and different logic. Goes to same controller and has different actions according to user.

but most of the time the logic and the jsp page is same (for example listing of accounts).

question:How can keep this logic and also make a fallback page for that specific action? If exists /de/invoice.jsp just use this else use /invoice.jsp(just like the themes in drupal)

I use tomcat as application server.

Any suggestion?

(Please note that by “theme” I do not mean Spring’s support for themes, but rather the general problem can be solved with Spring’s themes.)

  • 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-26T01:20:17+00:00Added an answer on May 26, 2026 at 1:20 am

    Basically you just want to pick the page of a <jsp:include> dynamically.

    Let’s assume that you put the page name to include in a variable called “invoicePage”. Then, the page template that’s referenced in your view resolver can include that variable as follows:

    <jsp:include page="${invoicePage}"/>
    

    So, the only trick is picking the right invoicePage.

    Spring themes have a nice solution to this: put the name of the theme-specific include in your theme-specific properties file, and Spring will take care of falling back to the default for you.

    Alternatively you can implement your own, probably based on a configuration that either lists countries with specific content or that sets an indicator on a per country basis. Which solution is appropriate depends on how you’ve configured the rest of your app.

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

Sidebar

Related Questions

I have a Silverlight application which uses 2 separate databases. I have a situation
Situation: I have an application that uses http connections extensively (stream ripping app) and
Here is my situation: I have an application that use a configuration file. The
imagine a situation where you have an application that needs to import data from
I have an web application that uses NHibernate as ORM. I enable lazy loading
I have a web application which uses URLs that look like this: http://library.example.com/Register.aspx?query=academic&key=586c70bb-5683-419c-aae9-e596af9ab66a (The
I have an application that uses UIDatePicker & I am facing problem as described
I have a CI application that uses .htaccess for URL routing. My basic setup
Background: I have an application written in Delphi that uses the Borland Database Engine
I have a desktop (winforms) application that uses a Firebird database as a data

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.