Can c:foreach have two vaiables like i, j in the for loop?

Hi all,
I'm trying to do the following iteration: (this is just a fragment)
<c:forEach items="${cemeta.FRSMAPPINGs}" var="frsmapping" items="${scripts}" var="st">
<tr>
<td>  <c:out value="${frsmapping.valuescript}"/> </td>
</tr>
<tr>
<td><c:out value="${st}"/></td>
</tr>
</c:foreach>it doesn't recognize the first variable (in this case cemeta.FRSMAPPING). I tried it just for the fist variable, or only for the second variable. I don't know why it doesn't work for both.
I changed the order of variables so it became:
<c:forEach items="${scripts}" var="st" items="${cemeta.FRSMAPPINGs}" var="frsmapping" >at this time the first variable also (this time st) is not recognized.
Plz tell me how to make a declation of the two variables using JSTL without using scriptlet thing.
Bye

No, you can't specify multiple collections for a forEach tag.
If you have parallel arrays like this, the best would be to use a varStatus variable:
<c:forEach var="frsmapping" items="${cemeta.FRSMAPPINGs}" varStatus="status">
  <tr><td><c:out value="${frsmapping.valuescript}"/></td></tr>
  <tr><td><c:out value="${scripts[status.index]}"/></td></tr>
</c:forEach>This uses the index of the iterator to look up the value in the parallel array.
Hope this helps,
evnafets

Similar Messages

  • If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • I have two devices (Iphone and Ipad) on the same Apple ID. When I go to Icloud and click at the "find Iphone" I see only one of my devices. How can I do to see both of them?

    I have two devices (Iphone and Ipad) on the same Apple ID. When I go to Icloud and click at the "find Iphone" I see only one of my devices. How can I do to see both of them?

    Obvious question, but have you got 'Find My iPhone' set on both devices?  Settings>iCloud>Find My iPhone.

  • Just updated my iphone. Now I can se I have two? iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first

    Just updated my iphone. Now I can se I have two! iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first account where there is no available password. I have tried several times to reset the password, bun I don't get the information I need - I have no access to email. What can I do?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

  • Hi can someone tell me if it is possible to have two accounts (from different countries) in the same laptop?

    Hi can someone tell me if it is possible to have two accounts (from different countries) in the same laptop?

    Hi...
    The issue is that your credit or debit card credentials must be associated with the same country where you reside to make purchases.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article
    Billing policy is the same for both the iTunes as well as Mac App Stores.

  • HT1386 Can i sync multipler iOS devices like iPad, iPhones on the same iTunes? Can each iOS device have different contents which are subsets of the iTunes complete library

    Can i sync multipler iOS devices like iPad, iPhones on the same iTunes? Can each iOS device have different contents which are subsets of the iTunes complete library

    You can share a library with as many devices as you want but they cannot have seperate subsets like you wish. They would all have access to all information in the library. You could "Manually" sync content to each device by doing the following:
    On Mac: iTunes > Preferences > Devices Tab > Put a check in the box next to sentence that says "Prevent iPods, iPhones, and iPads from syncing automatically > Then click ok.
    On Pc: Edit > Preferences > Devices Tab > Put a check in the box next to sentence that says "Prevent iPods, iPhones, and iPads from syncing automatically > Then click ok.
    To manually sync data from iTunes to devices see article below:
     http://support.apple.com/kb/HT1351
    If you do not want all devices to have access to all the media from the main library, you would need to create a library for each device. See the article below for more info:
     http://support.apple.com/kb/HT1495
    Hope this helps.

  • We have two Apple ID's but share the same computer....that runs Itunes...How do i setup Icloud for ea. user ID?

    We have two Apple ID's but share the same computer....that runs Itunes...How do i setup Icloud for ea. user ID?

    You can't merge Apple IDs.  What you could do is set up your phone to use the same iCloud accout you are using on your Mac.  To do this, go to Settings>iCloud and turn all synced data (Contacts, Calendars, etc.) to Off.  When prompted, choose to keep the data on the phone.  When everything is off, scroll to the bottom and tap Delete Account.  Now add the iCloud account you set up on your Mac (with the same Apple ID) and turn syncing back on for Calendars, Contacts, etc.  When prompted, you will probably want to choose merge, to merge the data on your phone with the existing data on this iCloud account.

  • IMac can't running any two fire wire hard disks at the same time . which

    iMac can’t running any two fire wire hard disks at the same time . which two hard disks have extra power from power socket . If i just insert one of them .No problem . If connect two Hds at the same time. Leopard cant find it and the Hds seem no problem. the machine must be restarted and then use one . No problem . I have formated the HD many times .even if which format is Fat 32 or Mac issue persists .Boot from installation CD used the disk utility . Issue stills . If i used one fire wire HD that get power from power socket and used one fire wire device . Leopard was no problem during this time . Whether is this design problem or my machine hardware problem?My Mac has been changed the logic board by Apple service . Do you have similar case in here????
    Message was edited by: KennyG1983

    Hi KennyG1983-
    How are you connecting these drives?
    This may help: What to do if your computer won't recognize a FireWire or USB device
    Luck-
    -DaddyPaycheck

  • I have two e-mail addresses and on the left hand side in mail if i expand the sent box one account has an exclamation mark appeared and some mail has deleted it's self??

    I have two e-mail addresses and on the left hand side in mail if i expand the sent box one account has an exclamation mark appeared and some mail has deleted it's self??

    You can continue to use them as Apple ID's, change the rescue address (as you know)
    You can use your iCloud address, but it won't be an alias, it's a full email address.

  • Since I updated to iOS5, I now have two (2) different Apple IDs. The first is my original Apple ID (iMac); the second is my primary email address (iPad

    Since I updated to iOS5, I now have two (2) different Apple IDs. The first is my original Apple ID (iMac); the second is my primary email address (iPad & iPod). How can I standardize on just one ID?

    No.
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    Recover use of the account:
    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or           
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions

  • I have two iPods that show up with the same name on my iTunes account.  How do I separate them?

    I have two iPods that show up with the same name on my iTunes account.  How do I correct so that I can put different music on each ipod?

    I figured it out.  Thanks.

  • Using iPad 2 - if i use the slide switch to lock rotation, i cannot unlock rotation, unless i use it to mute sounds.  i can't therefore have unmuted sounds and unlocked rotation at the same time??

    using iPad 2 - if i use the slide switch to lock rotation, i cannot unlock rotation, unless i use it to mute sounds.  i can't therefore have unmuted sounds and unlocked rotation at the same time??

    Uh .... Yes you can. You just have to understand how the whole thing works.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • I have two versions of Pr, one is the latest 2014 and when trying to open a Pr2014 session, I get an error message saying the project was saved in a newer version and cannot be opened. Help

    I have two versions of Pr, one is the latest 2014 and when trying to open a Pr2014 session, I get an error message saying the project was saved in a newer version and cannot be opened. Could there be an issue with an older Pr application on the computer? Please help!

    You need to be very careful which project you open in which version.
    For 2014 make sure its on 2014.1 build 81.

  • My sister has a mac and i want to update my phone onto the computer but i dont want her to see all my stuff can you somehow have more than one itunes account on the same computer so my stuff with save?

    my sister has a mac and i want to update my phone onto the computer but i dont want her to see all my stuff can you somehow have more than one itunes account on the same macbook so my stuff with save?

    How to use multiple iPhone, iPad, or iPod devices with one computer. The only way is for you to have a separate user account to log into on that computer.

  • I have two Macs and I am using the same Apple ID on both.  All of my info, history etc is showing up on both.  How do I turn this off?

    I have two Macs and I am using the same Apple ID on both.  All of my info, history etc is showing up on both.  How do I turn this off?

    You likely have iCloud turned on in at least Safari. If you don't want Safari to sync between these devices turn one of them off. System Preferences - iCloud - Safari (uncheck the box)

Maybe you are looking for