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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:45:06+00:00 2026-05-24T22:45:06+00:00

I have a getter method in the bean associated with my form, which returns

  • 0

I have a getter method in the bean associated with my form, which returns a Map. I want to access the object corresponding to a given String key from the map using Struts 1.x tags. I can iterate over the map by using its entry set and retrieve each key and its corresponding value, but I can’t think of a way to access the value using directly its key

  • 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-24T22:45:08+00:00Added an answer on May 24, 2026 at 10:45 pm

    Just use

    ${bean.map.key}
    

    to get it. Or, if it is a dynamic key in flavor of another variable, use the brace notation

    ${bean.map[key]}
    

    this is also useful if the hardcoded key itself contains one or more periods

    ${bean.map['key.with.periods']}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an object whose class has a getter method , and this getter
I have a java backing bean which has a method (call it getDataList() )
I have a bean whose properties I want to access via reflection. I receive
I have a class with an attribute and getter method: public Class MyClass {
I have a class 'Data' that uses a getter to access some array. If
I have a class with a string property, having both a getter and a
I have a dataTable which has a value of a bean class which looks
Let's say I have a bean like below. class Customer{ private String code; private
I have a class which contains a static member, a map of strings to
If I have two variables: Object obj; String methodName = getName; Without knowing the

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.