How do you extract data from ArrayList of Maps and the classical Iterator?

Hello guys.
I ran into this great doozie when I was coding this project I am working on. I have created a randomized question pool for a test so that no two tests with the same ID are alike. I grab a resultset from the DB and push the values through a randomizer. After that, then I stick a Map of the entire object into an ArrayList. Each object is then one complete question. So I have X objects (questions) in the ArrayList then (this is determined by a value in the DB in the test table).
I have the following code setup:
Map m = (Map)i.next();
          Iterator keys = m.keySet().iterator();
          while (keys.hasNext())
               key = keys.next();
               value = (String)m.get(key);
The key - data pair always comes out in the same order. What I am trying to do is populate a test (form values) for this. Is there a way that I can do this in JSP? The key map is 100% new to me.
I want to put the test into a table layout. the typical HTML boiler plate stuff is a cinch, but how would I get the information into a textfield? I can print out the key value pairs, but I guess I get lost in the logic when trying to get these to print in a specific order. Any help you can provide would be highly appreciated.
Kind Regards,
Josh

You can use the JSTL c:forEach tag for that.

Similar Messages

  • Monitoring using a Dashboard - How do you extract data from different fields?

    I have a situation where a Dashboard needs to be made to monitor the state of different SAP systems.
    Within individual Systems I know its easy to monitor the systems using CCMS (rz20), but my question is, How do you get to pull out the data that is displaying on the CCMS screen so that it could be taken and displayed on a dashboard. A dashboard could be a JAVA program that displays data from various such fields and displays maybe on a TV screen.
    What I found so far was,
    in rz20
    Click on Performance Overview.
    click on CPU Utilization
    So, I place my mouse pointer on Value '2' for User CPU Utilization and hit F1 and then click on Technical Details
    Now even if I place my mouse pointer on Value '1'' for User CPU Utilization and hit F1 and then click on Technical Details I get the same screen as above.
    So, My question is, How do we determine what data sits in what field?
    The aim again is to read these data and populate an external Dashboard.
    The current Systems are not connected to SolMan as we do not have a SolMan setup yet. I am just trying to make a Dashboard using the existing CCMS tool.
    Any thoughts or suggestions would be greatly appreciated.
    Regards,
    Bevin

    Hello Bevin,
    There are other transactions : ST06N/OS07N to check performance data, see note:
    #371023 - OS07/ST06: Monitoring operating system data
    #1084019 - OS07N: New operating system monitor
    All CCMS agents can copy data from the SAPOSCOL shared memory segment to the CCMS monitoring segment and transfer it to a central
    monitoring system. This means that the data is visible in the CCMS monitoring architecture and is displayed both in the familiar transactions ST06
    and OS07 and in the Alert Monitor (transaction RZ20)
    Operating System Collector SAPOSCOL:
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/c4/3a6bff505211d189550000e829fbbd/frameset.htmk
    Kind regards,
    Tamas Istenes SAP Support Engineer
    AGS Primary Support, Global Support Center Hungary

  • How can you transfer data from an ipod touch to the itunes library without having all your data deleted?

    I have a laptop and the hard drive had to be replaced because it WILL NOT work (This broken hard drive will be refered to as "HD1" from now on). So I had no choice but to have HD1 replaced with a better hard drive (the new one will be refered to as "HD2" from now on). I had HD1 for about 5 years, but what is stuck on HD1 is my itunes library will all of my music, like I said before HD1 will not work so I cannot retrieve any of my itunes data, or any data to be exact. But also, my data that was synced in HD1's itunes library is also on my ipod touch, which is still functional for the time being. HD2 has been installed and working perfectly and I installed itunes on it as well. If I synced my ipod touch to HD2's itunes library, all of my music on the ipod touch will get deleted. What I'm trying to do is have all of my music on my ipod touch transfered to HD2's itunes library without having anything deleted.
    Key things to remember:
    -"HD1" is my broken hard drive
    -"HD2" is my new and awesome hard drive
    -I can't access HD1 at all because it doesn't work
    -I have an ipod touch with all of HD1's music on it
    -HD2 has an empty itunes library on it
    -I need a way to transfer all the data on my ipod touch to HD2's itunes library without having anything deleted
    Is there someone, anyone who can help me out with this?

    I think so when you sign in your itunes library with your apple id which you were using on HD1 the data will be transfered or simply use icloud.

  • Hi i am new to labview. i want to extract data from a text file and display it on the front panel. how do i proceed??

    Hi i am new to labview
    I want to extract data from a text file and display it on the front panel.
    How do i proceed??
    I have attached a file for your brief idea...
    Attachments:
    extract.jpg ‏3797 KB

    RoopeshV wrote:
    Hi,
    The below code shows how to read from txt file and display in the perticular fields.
    Why have you used waveform?
    Regards,
    Roopesh
    There are so many things wrong with this VI, I'm not even sure where to start.
    Hard-coding paths that point to your user folder on the block diagram. What if somebody else tries to run it? They'll get an error. What if somebody tries to run this on Windows 7? They'll get an error. What if somebody tries to run this on a Mac or Linux? They'll get an error.
    Not using Read From Spreadsheet File.
    Use of local variables to populate an array.
    Cannot insert values into an empty array.
    What if there's a line missing from the text file? Now your data will not line up. Your case structure does handle this.
    Also, how does this answer the poster's question?

  • How to extract data from SAP 4.7 and upload data to SAP ECC 6.0

    Hi,
        How to extract data from SAP 4.7 and upload data to SAP ECC 6.0? Can i use BDC,BAPI,LSMW? Help me please.

    hi
    good
    both works not possible simultaneously.
    If you want to do it in two separate task than you can use the GUI_UPLOAD function module to fulfill your requirement.
    thanks
    mrutyun^

  • How can you transfer data from one ipod to another ?

    How can you transfer data from one ipod to another ipod ?

    The geniusbar told me what to do, I understood but there is still a problem for me >:/ It's not showing up though. Like "device."  Nothing is happening, and I tried as soon as I got home. Then after half an hour, then an hour, then 3 hours. My problem is that it's not showing up! It's stuck in recovery mode! There's still like 25% battery. So I have no idea why.

  • How can I extract data from a sound file in carbon

    hello,
    I am a student and I start recently learning carbon. I have to do a application which can read and extract data from a sound file and use that data to do some kind of visual representation of the file. I would like to know if someone can give some directions, tutorial,some code sample etc.
    thank you for your help
    chenita7

    hello orangekay
    My idea is to create an application that can read a sound file( AIFF, MP3 or other) in order to extract some kind of data ( numbers or any values) and use that data to represent the sound file visually.
    I dont know which kind of data can be extract from a sound file, and in which way i can manipulate that data to became a visual representation of the sound file. this is what I want to do as my second assignment for a subject at school, introduction to programming. has to be done based in carbon.
    regards
    chenita7

  • How do you extract pages from .indd to create a new .indd?

    How do you extract pages from .indd to create a new .indd?

    Laubender schrieb:
    @moseymums – two answers here:
    1. Duplicate the document and remove all not wanted pages.
    2.a Duplicate all selected pages in the Pages Panel to a different open InDesign file (the target) with the "Move Pages…" command.
    2.b Remove all unwanted pages from the target InDesign file.
    Uwe
    But take care on text threads accross several pages. If you delete a page with a text frame linked to a thread accross several pages, the text will change to the beginning of the thread on every first page.
    So it might be good to run a script which will unlink threadened text frames before.
    If you have often to do this task, there are several plugins which will help you to perform this. E.g. Output factory from http://zevrix.com/

  • How can i extract data from oracle table  to flat file or excel spread shee

    Hello,
    DB Version is 10.1.0.3.0
    How can i extract data from oracle table to flat file or excel spread sheet by using sub programs?
    Regards,
    D

    Here what I did
    SET NEWPAGE 0
    SET SPACE 0
    SET LINESIZE 80
    SET PAGESIZE 0
    SET ECHO OFF
    SET FEEDBACK OFF
    SET VERIFY OFF
    SET HEADING OFF
    SET MARKUP HTML OFF SPOOL OFF
    Sql> SPOOL bing
    select * from -------;
    SPOOL OFF;
    I do not see file.
    I also tried
    Sql> SPOOL /tmp/bing
    select * from -------;
    SPOOL OFF;
    But still not seeing the fie,

  • How do you transfer data from an older desktop to a new one?

    How do you transfer data from and older desktop to a new one?  Appreciate any guidance you can provide.

    How to use Migration Assistant:
    http://support.apple.com/kb/HT4413?viewlocale=en_US
    http://support.apple.com/kb/TS1963
    Troubleshooting Firewire target disk mode:
    http://support.apple.com/kb/HT1661
    Migrating from PPC Macs to Intel Macs:
    https://discussions.apple.com/docs/DOC-2295
    http://support.apple.com/kb/HT4796

  • How do you transfer data from old iPad to a new iPad?

    How do you transfer data from old iPad to a new iPad?

    iOS- Transferring information from your current iPhone, iPad, or iPod touch to a new device
    How to Transfer Everything from an Old iPad to New iPad
    iTunes Store- Transferring purchases from iOS device or iPod to a computer

  • How do you download data from your macbook to the ipad?

    how do you transfer data from your macbook to the ipad?

    What data do you want to transfer ? Music, films, tv shows, photos and ibooks are done by syncing in iTunes (for which there is some help in the iPad manual which can be downloaded from here http://support.apple.com/manuals/#ipad). Documents can also be done via iTunes, but it depends upon the app and the transfer method(s) that it supports e.g. file sharing via the bottom of the device's apps tab on your computer's iTunes, via your wifi network, cloud services, email attachments etc
    Edit : have you got the Keynote app on your iPad, or any other app that supports keynote presentations ? Without a 'suporting' app you can't store a document/file on the iPad (unlike computers files have to be stored within an app)..
    Message was edited by: King_Penguin

  • TS1702 how do you stop itunes from downloading apps over and over again and again like for ever it wont stop  help.

    how do you stop itunes from downloading apps over and over again and again like for ever it wont stop  help.
    i tryed everything i  can in the setting and so on , i even clicked on the downloads arrow to pause it and delete them but like i said it will now stop.
    theres apps i just dont want. theres a list of them but theres not a place were i can get rid of them. it also says some stuff about icloud yeah right like i have ios 5 or 7 ha . pod touch 2 is what i have lol . plz help thanks.

    to the right by search library theres an arrow there click on it : it will show you what it is downloading , from there you can pause and select all and delete them but still will continue to download them if you tell itunes to check for downloads. that download engien is crazy i tell yeah.
    no matter what we do it will still download them trust me i tryed everything and i also went to icloud to see if it was there but to what i see is that there is no apps there this is some crazy itune program that needs to remade.

  • How do you transfer music from your ipod touch to the new Itunes?

    How do you transfer music from your Ipod touch to the new Itunes?

    The music sync is one way - computer to ipod.  the only exception is ituens purchases.
    You need to copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • HT5129 everything has been moved. how do you stop it from asking any more and remove MobileMe from preferences?

    everything has been moved. how do you stop it from asking any more and remove MobileMe from preferences?

    Ferd II solved it.
    Go to iPhoto>Preferences...>Accounts...and remove the MobileMe account. Then go to System Preferences...>MobileMe, and sign out.

Maybe you are looking for

  • How can I reach a person with Verizon Wireless

    Due to Hurricane Sandy I have a bill payment problem.  I called my bank this morning to see if they were open.  They were.  I drove to the bank to make a deposit and they had already closed so I could not make the deposit.  Tomorrow is a wait and see

  • Issue in Target Group creation of contact persons

    Hi, I am working on CRM 5.0. Using the segment builder creating target group to be attached to the campaign. I have created one target group of organizations with Marketing attributes attached to these BPs. Using this organizations target group as Ma

  • Macbook Pro and 30" Cinema display for gaming?

    Does anyone know if a Macbook Pro (17" i7 2010) would be powerful enough to drive the 30" Cinema display (or a Dell 30") specifically for gaming to a reasonable performance FPS with a game such as Call of Duty 4? Would I have to knock down the resolu

  • Bug or Feature:  pictures not ordered by date and time taken

    Is this a bug or a feature?  Pictures are not displayed in the sequence (order) they where originally taken (timestamp of the camera), when - importing pictures via camera connection kit - importing pictures via photo stream - when editing pictures t

  • Help with faulty monitor

    Hi all I have a 19" CRT monitor which I use with my G5. The monitor has developed a fault and I wonder if anyone might be able to help diagnose what the problem is. Whenever there is a large area of white on the screen the picture develops a high fre