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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:00:35+00:00 2026-05-25T13:00:35+00:00

<div class=portlet-form-field-label><spring:message code=label.someMessage/>&nbsp;<a href=’javascript:popup(<fmt:message key=’someUrl’ />);’><fmt:message key=’someLabel’ /></a>.</div> In the above code snippet, what

  • 0
<div class=portlet-form-field-label><spring:message code="label.someMessage"/>&nbsp;<a href='javascript:popup("<fmt:message key='someUrl' />");'><fmt:message key='someLabel' /></a>.</div>

In the above code snippet, what is the javascript:popup function doing? The standard function is window.open(url). Is 'javascript:popup' a standard function?
The other question is that someUrl is resolving to a location of an html file but the actual location of the html file is different.
And I cannot find any mapping

  • 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-25T13:00:35+00:00Added an answer on May 25, 2026 at 1:00 pm

    1) no, this should be a custom (not standard) popup() function.

    2) Your code uses someUrl to extract a value with fmt:message and then paste it into the popup.

    Following is an illustration on how fmt:message works:

    let’s introduce the <fmt:message> action. If you really wanted to do the bare-bones amount of work necessary to build an internationalized application,is the only action that you’ll need to consider. The action takes advantage of the LocalizationContext (which we talk about in the next section).By using the ,you can output values from your resource bundles as simply as:

    <fmt:message key="welcome"/>
    

    The appropriate resource bundle will be used to look up the key “welcome” and the translated string will be provided. This is about as easy as it gets to incorporate international support into your application. The action also supports parameterized content, also called parametric replacement. For example, you can provide variables that will be used within the string used by the key attribute. Say we want to personalize our welcome page and pass the name of a user so that we can welcome them. To do this, we use the <fmt:param> subtag. We will talk about this in more detail later in this chapter, but as a quick example, so that you are familiar with the format, the action might look like:

    <fmt:message key="welcome">
    
    <fmt:param value="${userNameString}"/>
    
    </fmt:message>
    

    taken from here

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

Sidebar

Related Questions

I have this html: <div class=portlet-header> Company Information ... <button> some button here </button>
I have this code: <div class = content-dir-item> <p>Text input</p> <img src=./images/email.png class =
first I have an xml : <app id=id-1> <html_code> <div id=id-1 class=portlet> <div class=portlet-header>Links</div>
I write a xml like <app> <html_code> <div id=id-5 class=portlet last> <div class=portlet-header>Weather</div> <div
%div{:class => [@item.type, @item == @sortcol && [:sort, @sortdir]] } Contents could render as
This code in a partial: <div class =vote_updated> <p><%= event.actor %> <% case event.subject.value
How can I get an image to stretch the height of a DIV class?
Let's say I do something stupid like this: <div class=my_class>fun wee!!</div> <span class=my_class><b class=my_class>Title</b></span>
$('div.box').html(hello) puts the word hello inside all my div's of class 'box'. They all
Wordpress wraps images with captions in a div with a class of .wp-caption. I'm

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.