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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:34:34+00:00 2026-05-16T01:34:34+00:00

i get a list from my java code and I would like to create

  • 0

i get a list from my java code and I would like to create a matrix from this list.
In my jsp I have a select and I would like to display in a table the values of my matrix in relation to value in my select choice

my list in my java

<html:select property="immeuble.zone" size="1"  styleId="zone"  styleClass="saisie">
   <html:optionsCollection  property="optionsZone" label="libelle" value="code"/> 
</html:select>

my lsit in my jsp

List optionsZone = new ArrayList(3);
optionsZone.add(new CodeLibelleBean("1","1"));
optionsZone.add(new CodeLibelleBean("2","2"));
optionsZone.add(new CodeLibelleBean("3","3"));

my list in want display

HashMap Tarif = new HashMap();
Tarif.put("1","100");
Tarif.put("1","150");
Tarif.put("1","180");
Tarif.put("2","200");
Tarif.put("2","250");
Tarif.put("2","290");
Tarif.put("3","300");
Tarif.put("3","350");
Tarif.put("3","360");
  • 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-16T01:34:35+00:00Added an answer on May 16, 2026 at 1:34 am

    I’m not sure I understood your question, but probably you want to pass your arrays to Javascript and do some operations with them there. If this is the case, you will need to use some Java JSON converter.

    Here is a starting point for that: https://stackoverflow.com/questions/338586/a-better-java-json-library

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

Sidebar

Related Questions

Let’s say I have table/list like this n=3 in this case, but n can
I have a NSMutableArray: NSMutableArray *temp = //get list from somewhere. Now there is
I have a List<List> . I want to get a single List from that.
I need to get items from a html list from the vb.net code behind
Given an existing JSP project, I would like to get a feel for the
I am trying to get list of numbers from: numbers= 1,2 to: '1','2' I
Can somebody help me to suggest how can I get the play list from
I get a list of items from my Repository. Now I need to sort
I want to get a list of objects from the database between a given
I am trying to get a list of hrefs from a list of ten

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.