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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:47:38+00:00 2026-05-30T10:47:38+00:00

I have to build a multi-language web site in JSP/Servlet. I’m considering JSTL for

  • 0

I have to build a multi-language web site in JSP/Servlet.

I’m considering JSTL for the i18n, and I’ve some general questions:

1) is it possible to handle with jstl both the language selection by hand (e.g. through a pull-down menu or a link) and the automatic language recognition?

2) what is the better approach if the most part of strings are dynamic (retrieved from a database)?

  • 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-30T10:47:40+00:00Added an answer on May 30, 2026 at 10:47 am

    is it possible to handle with jstl both the language selection by hand (e.g. through a pull-down menu or a link) and the automatic language recognition?

    Yes. See also How to internationalize a Java web application?.


    what is the better approach if the most part of strings are dynamic (retrieved from a database)?

    You’d need to create a custom ResourceBundle.Control which you inject in the request scope by a Filter. This filter should basically take over the job of <fmt:setLocale> and <fmt:setBundle>.

    request.setAttribute("bundleName", yourCustomResourceBundle);
    

    See also internationalization in JSF with ResourceBundle entries which are loaded from database (although JSF targeted, the idea is the same for plain JSP; as said, you’d only need a Filter instead to set it).

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

Sidebar

Related Questions

Possible Duplicate: How do you build a multi-language web site? I inherited some code
I need to build a multi-language site, where the client will add records in
I have a multi module web app building with maven. We build the war
I have a big Maven multi-module build set up in my Jenkins. It is
We have several independent builds (each independent build is a multi-project build). The main
I have a project in which the maven-enforcer rule fails with a multi-module build
I have a multi-project C++ Gradle build, which produces a number of libraries and
I am trying to build a multi-app CodeIgniter site, where the assets for all
I'm developing a CodeIgniter based site that will be very multi language heavy. Plan
In a multi-project build I have a modules directory that contains several sub-projects. Instead

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.