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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:01:59+00:00 2026-05-24T05:01:59+00:00

It is possible to bind a List of String (List) and display them in

  • 0

It is possible to bind a List of String (List) and display them in a jsp in a combo box like this:

<form:select path="countryId">
    <form:option value="" label="Please Select"></form:option>
    <form:options items="${countryList}" itemValue="countryId" itemLabel="countryName"/>
</form:select>

I want this list to display in <td> or <form:input> like fields, not in combo box.

I am binding String list in model as

Map referenceData = new HashMap();
referenceData.put("OutputsList", Outputs);

In JSP I use

<c:forEach var="OutputsList" items="${Outputs}">  
    ${OutputsList}
</c:forEach>

But list is not printed. What could be the reason?

  • 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-24T05:01:59+00:00Added an answer on May 24, 2026 at 5:01 am

    There was a wrong approach while using it in a jsp. From the code in question just swap OutputsList

    Map referenceData = new HashMap();
    referenceData.put("OutputsList", Outputs);
    

    In JSP I use

    <c:forEach var="item" items="${OutputsList}">  
        ${item}
    </c:forEach>
    

    It will work.

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

Sidebar

Related Questions

I'm trying to bind a list box in the simplest manner possible with the
Should it be possible to bind a WPF combo box to a class. I
Is it possible to bind an additional resource string to another attribute within a
It's possible to implement INotifyCollectionChanged or other interface like IObservable to enable to bind
I'd like to bind a list of dates to the BlackoutDates property but it
I've seen how to bind a ComboBox to a list that has columns like
I was just wondering if it would be possible to bind the list of
whether possible Bind complex list to DataSource a GridView with all members? such as:
I'd like to bind a list of objects to a report and show its
I'm trying to bind a list of objects to a list box. Each object

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.