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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:29:38+00:00 2026-06-12T22:29:38+00:00

I understand the usage of standard fmt:message Tag i.e we define something like this

  • 0

I understand the usage of standard fmt:message Tag i.e we define something like this in the JSP:

<fmt:setBundle basename="ResourceBundles.ValidationErrorMessages" var="errorMessages" />
<fmt:message key="${error.value}" bundle="${errorMessages}" />

Suppose error.Value = “MQ2009”

My properties file named “ValidationErrorMessages” has following entry

MQ2009 = MQ time out

Now my requirement is to have something like

MQ2009 = Mq timeout happened for message {messagename}.

Can I define the messagename variable dynamically? I.e at runtime, messagename will be available in request scope and it should be substituted in the properties file.

How can I do this? Do I need a custom tag or does Java EE provides this feature which I am not aware off?

  • 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-06-12T22:29:39+00:00Added an answer on June 12, 2026 at 10:29 pm

    You can define properties like

    MQ2009 = Mq timeout happened for {0}
    

    and then

    <fmt:message key="MQ2009" var="val" >
       <fmt:param value="${valueComingFromSomeParameter}"/>
    </fmt:message>
    

    and then

    <c:out value="${val}"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure exactly how to understand the usage of message in socket.io. I'm
$db_hased_pw = $result[password] || false; I understand the usage of this line of code,
I think this can be a dumb question, but I don't understand the usage
I don't understand usage for these: msleep and msleep_interruptible ... I know one interruptible
I can't understand the usage of glOrtho . Can someone explain what it is
I am not sure if I understand the usage of crossdomain.xml correctly. I am,
I read few articles on jsplumb , but cannot yet understand the usage. I
I do not really understand the proper usage pattern of SQLite transactions in Android.
I cannot understand the Java memory usage. I have an application which is executed
This is one usage I found in a open source software.And I don't understant

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.