ForEach items syntax help please

This shouldn't be a problem but it is. I have a JSP. I am sending it an attribute that is a collection by calling setAttribute() on the request and then dispatching to the JSP from my front controller servlet. I want to iterate through the collection. The name of the attribute is "changeRequets" and I have tried accessing it without any scope qualifiers and with scope qualifiers and no matter what, this forEach produces no data. I have verified that the JSP is receiving data, because I've accessed the request attribute separately without JSTL. What is wrong with the following please?
   <c:forEach var="chgRequest" items="${requestScope.request.changeRequests}">
                <tr>
                    <td>
                        <input type="radio" name="crButton" value="<c:out value="${chgRequest.crChangeRequestID}"/>" <c:if test="${status.first}">checked</c:if> />
                    </td>
                </tr>
</c:forEach>This produces no data, no rows. I don't get it. I can't find anything in my JSTL book that helps. Thanks.
Ken

Ignore the previous reply
change it to the following
<c:forEach var="chgRequest" items="${changeRequests}">
                <tr>
                    <td>
                        <input type="radio" name="crButton" value="<c:out value="${chgRequest.crChangeRequestID}"/>" <c:if test="${status.first}">checked</c:if> />
                    </td>
                </tr>
</c:forEach>

Similar Messages

  • PL/SQL Function Syntax help please...

    Can someone help me with the syntax here please? I am sure i am doing something wrong in my LOOP.
    create or replace FUNCTION fcn_chk_dec(p_date number)
    return NUMBER
    as
    --DECLARE
    v_date NUMBER;
    v_active NUMBER;
    v_prev NUMBER;
    v_delta NUMBER;
    v_perc_delta NUMBER:
    CURSOR c_prev_active IS
         select date,people,
    lag(people,1) over (order by date)
         from stats
    where date between to_date(p_date, 'YYYYMMDD')-2 and to_date(p_date, 'YYYYMMDD')-1
         order by date desc
    BEGIN
         OPEN c_prev;
    loop
         FETCH c_prev INTO v_date,v_active,v_prev;
         exit when c_prev%NOTFOUND;
         v_delta:=v_active-v_prev;
    v_perc_delta:=trunc((v_delta/v_active*100),2)
    end loop;
    close c_prev;
    return v_perc_delta;
    END fcn_chk_dec;

    what i am trying to do is create a funtion that will return one value for the first row that comes back.
    here is my initial query. the reason i did not go with this query is because there are too many selects and i was told that's not good and slows down the system. Plus, i need to have a function call in another program that will access this function to compare it's output to a value in a table.
    here was my initial start:
    select date,people,delta,trunc((delta/people*100),2) as perc_delta
    from (select date, people,people-prev_dly_people as delta
    from
    (select date,people,
    lag(people,1) over (order by date) as prev_dly_people
    from stats
    where date between to_char(sysdate-2,'YYYYMMDD') and to_char(sysdate-1,'YYYYMMDD')
    order by date desc))
    basically, i have a table that has a total number of people. I want to get the percentage growth and decline from the most recent date and the date before it. This will give me a day to day percentage of people population change as of the most recent date.
    I need this to be a function becaus i want to be able to pass any date i want into it and get the given delta percentage at the time for the people's population.
    hope this makes sense.

  • Hello, Can anyone out there help me? I tried updating my phone to ios 6.0 this morning and my phone did a factory default/reset.  i lost hundreds of precious pictures and all my contacts. Is there anyway of recovering those items?  Help please :-(

    Hello, Can anyone out there help me?  I tried updating my phone to ios 6.0.1 this morning and my phone did a factory default/reset. I lost hundreds of precious pictures and all my contacts. Is there any way of recovering my photos?  Please Help :-(

    Yes we did a back up, but it's a new computer and we can't find it anywhere on it.  We had to "authorize" it through itunes, but still nothing.  Thanks for the help

  • Help!!!!!! OS X wants to use the "local items" keychain. Please enter password. I have tried every password that I know of. Nothing works! I haven't even set up a password for this

    Help!!!!!! OS X wants to use the "local items" keychain. Please enter password. I have tried every password that I know of. Nothing works! I haven't even set up a password for this

  • Trying to click and drop photos from iPhoto into an Empty SD card. all I am getting isThe item "IMG_0346.JPG" can't be copied because there isn't enough free space. Card is 156 MB Photo is 1.56MB. Help please.

    Trying to click and drop photos from iPhoto into an Empty SD card. all I am getting isThe item “IMG_0346.JPG” can’t be copied because there isn’t enough free space. Card is 156 MB Photo is 1.56MB. Help please.

    Select the photo(s) in iPhoto and export to a desktop folder (file menu ==> export) - see this user tip for export options - then be sure the card is not locked and in the finder verify available space and if it is adaquate drag that folder to it
    LN

  • HT201209 Can you use iTunes cards to purchase items in a game such as gems for Clash of Clans-if so how? Help please!

    Can you use iTunes cards to purchase items in a game such as gems for Clash of Clans-if so how? Help please!

    You can, if you have a balance on your account and it covers the amount of the IAP that you want to buy then it should be automatically used for the purchase - if it doesn't cover the IAP price then any remainder will be charged to your credit card.

  • I can buy my needs from the game says I tell customers to help please help me Visa card not working in any Itemes games

    I can buy my needs from the game says I tell customers to help please help me Visa card not working in any Itemes
    games

    If you mean that you have been instructed to contact iTunes support, then will need to do what it says, contact iTunes Support. These are user-to-user support forums, if you thought you were contacting Apple by posting here. Go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to contact the iTunes Store.
    If that does not answer your question, try posting in your native language, or find a friend with a better command of English to help you ask your question here.
    Regards.

  • HT203180 iTunes Sync: 792 items could not be synced! See iTunes for more info - it's the first time I get this on iPhone and iPad after adding pictures to my library on PC/Win7. Can anybody help please. Thx Vincent

    I always proceeded the same way. I cannot find the message in iTunes and do not know how to solve. Can someone help please?

    You said pictures. Do you have them in iphoto, and then sync with iTunes? That should make them appear in your iPhone, check the Photos page in iTunes for the settings.
    Space: when each photo is 5MB only, the 792 is already 4GB !
    Lex

  • I am running windows 7. We updated firefox and it would no longer open. I uninstalled it and reinstalled from firefox website. I click on the firefox icon and it will not open. Help please

    It installs and I attempted to launch the browser and it never starts. I tried to uninstall, but it says firefox is running. I restart my computer and uninstall and try again. It still will not open after install is complete. Why won't it ever open up? Help please!

    Right-click on your Windows Taskbar and select Start Task Manager. Look in Task Manager for processes running that are Firefox-related, such as Firefox.exe or plugin-container.exe. If you see either of those, right-click each of them and select "End process". Then try again to start Firefox in [[Safe Mode]]. <br /><br />
    *If Firefox will start in Safe Mode, select the option you are presented with to disable your add-ons and plug-ins and restart Firefox normally. You likely have a plug-in, add-on, or a combination of two or more that is causing the problem. Because Firefox allows users to customize endlessly, sometimes there can be conflicts between customized items. From the Firefox menu bar, go to<br /><br />Tools -> Add-ons<br /><br />then re-enable them one by one, restarting Firefox after each and testing after each one to see which one or combination of two or more is causing the problem. <br /><br />
    *If Firefox will not start in Safe Mode, make sure you again check Task Manager and end any running instances, then uninstall Firefox and download a fresh copy from mozilla.org/firefox using another browser temporarily. Re-install Firefox (see: [[Installing Firefox on Windows]] for more help ) and try running Firefox again.
    Please report back your progress.

  • Need Urgent help please? I need to restore from a previous iphone backup.

    Oops, I admit it - I messed up but need help please?? I received a replacement iphone today. My broken iphone OS and my itunes had the latest software updates and I did a full backup before going to the store to get the rerplacement. However, when I got home with the replacement iphone and plugged it in, it asked if I wanted to update the OS on it. I made the mistake of saying yes. It then made a backup of the empty factory settings from the new replacement and restored from that rahter than the backup I made before going to the store. Yes I know I should have said no and just did the restore which would have resotred my previous backup that I made before going to the store. Then after everything would be allright I could have told it to update the OS.
    You can slap my in the face or I will do it myslef for making such a stupid mistake. All ready did the "I should have had a V" thing to my forehead.
    After seeing the restore was fromthe factory settings rather than my earlier good backup, I went into my documents and drilled down to the mobile sync backup and saw that one of the three folders (with giberish as a title) has a lot of information with the date and time I did the backup before going to the store.
    Could I possibly delete the later (factory setting backup) folder and then do a restore to get my good backup onto the iphone? I didn't do that yet in fear that it might mess something else up on the iphone and I wanted to check with you experts here first for guidance and assistance, PLEASE?
    I'll be anxiously awaiting any help you can give!
    Thank you!!

    rwmac22 wrote:
    Hopt and OneOrangeTree, Thank you both very much for replying!!
    It took me a long time to get back to the dissucison group because I tried both of your suggestions which therfore had to do about 4 restores. They take quite a while (about 50 minutes each actually). Your help got me half way there and is very apprecaited! I did manage (with your excellent help) to get most of my backup put onto the replaced iphone. the photos, music, and videos didn't get put over. I think I can move those back over by making sure they are selected in the seperate tabbed screens for the iphone. However, I can't get to those screens because every time I connect the iphone now, it brings up the "set up your phone screen". The one with the "an iphone has been previously synced with this compter" setup as new phone or restore from ....
    Well I did the resotre from 3 times and that page still comes up when I plug in the iphone. Yes, I did close itunes, reboot the PC, and powered off the iphone and then brouhgt it back up before connecting (all several times), but itunes still takes me to the same "setup iphone screen".
    Can you help me to get it to the standard iphone screen and there I will make sure the selected items are checked and do a sync.
    Please know I do appreicate your kind assistance so far and hope someone can get me the rest of the way!
    The "Backup" do not store your Applications, Music, Video's. It saves your settings, your application preferences, etc.

  • How can I get Time Machine to back up an external hard drive (iPhotos) that is attached to airport extreme base station. Note: Time machine is usb to macbook pro and external drive with iphotos is usb to airport extreme base station. Help please. Thanks!

    How can I get Time Machine to back up an external hard drive (iPhotos) that is attached to airport extreme base station. Note: Time machine is usb to macbook pro and external drive with iphotos is usb to airport extreme base station. Help please. Thanks!

    Once you have the drive connected to your Mac, click System Preferences (gear icon) on the dock
    Click Time Machine
    Click Options
    Be default, the hard drive will be Excluded from backups. Click the drive to highlight it, then click the "-" (minus) button at the bottom of the list to remove the drive from Excluded items.
    The drive will be backed up on the next Time Machine pass
    Everything above assumes that the hard drive has been formatted in Mac OS Extended (Journaled) as Time Machine will only backup drives in that format.

  • Little help please regarding deleting files and folders...

    My wife has a MBP and has accumulated some old items in her documents folder that she'd like to delete. She has a USB mouse but the "right click" doesn't appear to work. She's running 10.4.11 and can't reveal the files in icon mode to facilitate dragging to trash. Certainly there is a sequence of keystroke commands that will allow these files to be effectively trashed, but our "control/delete", or "apple/delete", or "option/delete" doesn't do the trick after highlighting the subject file. Help please! TIA!

    To delete a file or folder, high light it then using the keyboard type Command Delete and that will delete it. If you have multiple files and/or folders the same keyboard commands apply.
    Regards,
    Roger

  • UIX DataObjects - some help please

    I'm doing some interesting things with DataObjects and don't understand why something's happening and would like some help please. An explanation is needed first. Rather than physically delete anything from our system and have all the problems of referential integrity we have a status associated with 'entities' either active or inactive. Some of the things which have this status are foreign keys in other entities my example is a Brand which has a BrandType. My problem is that by default when populating e.g. a choice list our services will only provide 'active items'. However, using my example, if I want to update a Brand that has a foreign key to an inactive BrandType, I want the inactive BrandType to appear in the list. I have an EJB service which provides the list of BrandTypes and whose interface allows for the specification of an 'id' to be included. I have a DataObject stored on the pageState (currentBrand below) which contains this id and I want to pass this 'id' as a parameter to another DataObject which actually returns the DataObjectList of BrandTypes to populate the choice list. With me so far? Hope so! This DataObject is also part of the 'currentBrand' DataObject stored on pageState (brandTypes@currentBrand).
    So to do this I have this data binding on my <messageChoice> element
    <messageChoice    name="brandType"
                      data:prompt="label@type@fields@pageResources"
                      data:shortDesc="shortDesc@type@fields@pageResources"
                      data:selectedValue="brandTypeId@brand@currentBrand">
      <contents data:childData="(brandTypeId@brand@currentBrand)@brandTypes@currentBrand">
        <option       data:text="name"
                      data:value="id"/>
      </contents>
    </messageChoice>And this is my selectValue in the 'brandTypes' DataObject which will get the 'id' from
    (brandType@brand@currentBrand) as its key
      public Object selectValue(RenderingContext pContext, Object pKey) {
        Long id = (Long)pKey;
        Long[] ids = new Long[1];
        ids[0] = id;
        HttpSession session = getSession(pContext);
        UserToken userToken = getUserToken(session);
        GetBrandTypeRequest request = new GetBrandTypeRequest();
        request.setUser(userToken);
        request.setOutputModeType(OutputMode.ENTRIES_ONLY);
        request.setActiveStatus(Status.ACTIVE);
        request.setSelectionType(SelectionType.ALL);
        request.setIds(ids);
        return BrandTypeCache.getBrandTypes(request).getBrandTypes();
      }The return value is actually an array of DataObjects (which will get converted to a DataObjectList). Now this actually works as far as rendering is concerned but in debugging I've found that the selectValue method is actually being called several times 10 in fact when I would have only expected it to be called once. I wondered if it was being called for every item in the list but there are only 9 of those. There's obviously a performance issue as I'm calling my EJB service each time selectValue is called.
    Hope this all makes sense - can anyone tell me what's going on here and what I can do to fix it?
    Thanks
    Ian

    Already answered in another thread.
    Is This a bibeans bug

  • Using &Item. syntax in Rich Text (ck editor)

    Morning Forum
    We are trying to use the &ITEM. syntax in Apex 4.1.1 CKE Editor/Rich Text Editor. The editor however converts the & to &amp; ....
    Does anyone have any experience in something something similar and how it can be resolved ?
    Thanks
    Pierre

    Are you saying you have a Source Value or a Default Value to an Editor, and that doesn't convert &PXXX_TEXT. when you load the page?
    I made something similar and had it working. Can you please elaborate?
    Tks,
    Kleber

  • Where can i found my Domain of iWeb in the new OS X Lion? Also i can't find the iWeb folder in the Library/Application Support. Help Please

    I want to copy my Domain of iWeb to work in another computer, but since the new OS X Lion, i can´t found it in Library/Application Support/iWeb like in Snow Leopard.
    Help please!
    Thank you!!!

    Can you get to the Library folder via the Go menu?
    Or download and run  Find Any File  to search for the library with the following settings:
    That will give you the following results:
    Are you using a different Terminal front end than the default one for the Terminal applicaiton?  I'm asking because of the "clicked on RUN" statement.  I get no RUN item in my Terminal application.

Maybe you are looking for