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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:47:03+00:00 2026-06-06T19:47:03+00:00

I have a localized spring mvc based web application, that has an externalized messages

  • 0

I have a localized spring mvc based web application, that has an externalized messages resource bundle/file.

A couple of sample messages in the bundle are:

...
msg1=Click here to go to your account
msg2=Click here to go to your inbox
...

As you can see, I have messages that are of the form : ‘Click here…”. Now, I wish to make the ‘click here’ part of the message/text as a link, whose destination would be different for each user (for e.g., for ‘msg1’, user1 would have a link to user1’s account, while for user2 the target would be the link to user2’s account, and so on).

Could you please let me know how can this be achieved?

  • 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-06T19:47:05+00:00Added an answer on June 6, 2026 at 7:47 pm

    The link should be the same for all the users. Since the users are authenticated, the server should know which user is executing a given request, and should thus use that information, rather than a request parameter, to get the inbox or account of the current user.

    That said, if you really need to pass a request parameter which is different for every user, just parameterize your message:

    msg1=<a href="{0}">Click here</a> to go to your account
    

    And use your message tag topass the argument. With the JSTL, this would be something like this:

    <c:url var="accountUrl" value="/account.action">
        <c:param name="userId" value="${currentUserId}"/>
    </c:url>
    <fmt:message key="msg1">
        <fmt:param value="${accountUrl}"/>
    </fmt:message>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Grails web application running on a german localized machine. How does
I have an MVC 4 application that I'm localizing. All the built-in resourcing and
I have the localized strings file that is used in the Iphone app that
I have a Localized.strings (UTF-16) file that contains some strings that I use to
I have an ajax call that return a localized success message based on httpcontext,
I have an iPhone iOS4.1 application that uses localized strings. I have just started
I have a localized NSString that is something like You win. It was Chuck
I have a localized application, and I am wondering if it is possible to
How can I have a localized default values in the Settings bundle? I encounter
Is it possible to customize a django application to have accept localized date format

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.