Need to test for a Hashtable key in JSTL

What I am trying to accomplish is to test a Hashtable for a specific key and if it is there run some HTML.
This is my code but it obviously wrong since JSTL yells at me when I try to execute it.
<c:set var="hash" scope="page" value="${UpdateStatusData}"/>
     <c:if test="${hash.containsKey('success')}">
          success
     </c:if>UpdateStatusData is a Hashtable. How can I modify this "code" in oder to test for a key?
Thanks

EL != java
Luckily EL handles Maps quite well:
<c:set var="hash" scope="page" value="${UpdateStatusData}"/>
// one way
<c:if test="${not empty hash.success}">
     success
</c:if>
// an alternative syntax
<c:if test="${not empty hash['success']}">
     success
</c:if>Cheers,
evnafets

Similar Messages

  • Need Administartor Password for - System Disable Key: is 62187718

    Need Administartor Password for CQ62 215DX - System Disable Key: is 62187718

    Hi,            Use the below code to reset 73885338 Or generate one from the below link  http://bios-pw.org/ 1. Use the unlock code you generated to enter the BIOS
    2. Disable all passwords that are enabled in the BIOS's security menu.
    3. If asked for current password - type the unlock code
    4. For new password, just press ENTER key
    5. Repeat the same for verify password column.

  • Need a test for fetch into from a cursor or an alternative.

    I've got a small oddity.
    Ultimately it's two cursors that are exactly the same except a part of the WHERE clause. Depending on how many records I am going through (based on a counter) I need to use one cursor or the other as the outer loop, to then process an inner loop.
    My problem is I don't quite know how to exit out of the current loop when the fetch reaches the end of the cursor. Meaning, in each of these loops, there's an IF THEN to see which cursor I'm using, and then fetch from the correct one. If I use a FOR X IN CURSOR loop, I'll have to double up the code, one for each outer cursor loop.
    What's the test in Oracle for no record found or when it hits the end of a cursor with a fetch? Or am I stuck and I can only use the exception block when the fetch fails?
    Thansk!

    You can check whether your fetch returned any data with %notfound.
    DECLARE
      l_cur   sys_refcursor;
      l_var   VARCHAR2 (30);
    BEGIN
      IF TO_CHAR (SYSDATE, 'Day') = 'Monday'
      THEN
        OPEN l_cur FOR
          SELECT dummy
            FROM DUAL;
      ELSE
        OPEN l_cur FOR
          SELECT dummy
            FROM DUAL
           WHERE 1 = 2;
      END IF;
      LOOP
        FETCH l_cur
         INTO l_var;
        EXIT WHEN l_cur%NOTFOUND;
        DBMS_OUTPUT.put_line (l_var);
      END LOOP;
    END;
    /

  • I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. don't need the caps/lock or ctrl key and due to an injury my daughter can only use her left hand to type. She is using a text to speech app to verbaliz

    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. I don't need the caps/lock or ctrl key. Due to a brain injury my daughter can only use her left hand to type. She also uses a text to speech app to verbalize all of her needs since her speech isn't intelligible any longer either. And her vision was significantly affected also, so the keyboard has to be mounted about 6 inches from her face. So to reach across the keyboard with her left hand to the right side delete and enter button is physically difficult and causes typing errors, which cause people to not understand what shes trying to say.
    The best keyboard so far is the Zagg folio mini. I just had to make stickers to enlarge the letters on the key buttons.
    Does anyone know how I can reprogram these two keys? Or where I can buy a wireless mini keyboard for Ipad made for lefthanders with these two functions on the left side. I have searched for days and days. It's sooooo important to me that she be able to contribute her voice again. Imagine if you got in a car accident and couldn't speak clearly any longer, but understood everything still. Thanks for any help and suggestions you all take the time to share with me. I really appreciate the kindness of strangers to help me help my daughter.
    Sami's mom

    Sami\'s mom wrote:
    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini.
    You cannot.

  • HT201380 Yesterday this was automatically installed.  Today I can't access a document in Pages.  A prompt says I need a Pages update.  But the next screen tests for updates and informs me everything is up to date.  What's up?

    Yesterday this was automatically installed.  Today I can't access a document in Pages.  A prompt says I need a Pages update.  But the next screen tests for updates and informs me everything is up to date.  What's up?

    It's highly unlikely that the Pages update problem has anything to do with the ARD client update, since the client is not involved in any way with Software Update. I'd suggest asking for assistance with the update problem in the forum appropriate for your version of Mac OS X.
    Regards.

  • Hello, had to move to mavericks lost quicktime Pro, Need the feature for looping audio sections repeatedly, I have the install Key from my old QT Pro version, any ideas?

    Hello, had to move to mavericks lost quicktime Pro, Need the feature for looping audio sections repeatedly, I have the install Key from my old QT Pro version, any ideas?

    If QuickTime Player 7 isn't in the Utilities folder automatically, you can install it separately. See:
    http://support.apple.com/kb/HT3678
    Instructions on how to register your QuickTime Pro key can be found in that same document.
    Regards.

  • I would need to install Adobe Connect Add-in Test for only one webinar. When I pressed instal button -  it said to me - it cannot be written on hard disc. Could you help me, please. Bretislav

    I would need to install Adobe Connect Add-in Test for only one webinar. When I pressed instal button -  it said to me - it cannot be written on hard disc. Could you help me, please. Bretislav

    After posting my concern/question, especially in regards to the optical drive, I read this on this forum:
    Jul 11, 2011 5:21 AM      
    I would like to update my macbook pro from Tiger to Snow Leopard, but my optical drive is not working. Can I take my macbook pro into the apple store and have them install it via a portable drive?
    MacBook Pro, Optical drive is no longer working
    Another poster replied, "Yes, I believe they will."
    Is this true? Can someone verify this?  Any idea of cost?  I really don't need my optical drive.  Besides, end of year, I'm getting a new Mack Book Pro.

  • Where can I download FF 4? I need it to test for the company I work for. Thanks!

    I need version 4 of Firefox to be able to test for the software company I work for. We support FF3-6. My version 4 was updated to version 5 and I need it back to version 4. I'm not finding anywhere online to download 4.

    For those that really need an earlier version of Firefox to '''test with''', find your system and the Firefox version you want in releases, download and start the install.
    * ftp://ftp.mozilla.org/pub/firefox/releases/
    :or with the latest of version 3
    * http://www.mozilla.com/firefox/all-older.html
    : Note Mac OS X 10.4 user, and Mac OS X 10.5 users without Intel cannot upgrade to Firefox 4 or 5.
    When reinstalling Firefox from a download, Firefox must be down once the installation starts. When the installation finishes, don't let the install start firefox for you. Instead end the install and start your '''test install''' of Firefox in your normal manner, thus preventing creating a new profile which does not have your bookmarks cookies, etc (but your old profile would still be around and would).
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • I would like to become a counsmer product tester for Apple what do I need to do?

    I would like to become a counsmer product tester for Apple what do I need to do? Thanks

    Apply for employment.

  • I'm a software tester for an in-house app at my company. version 10.0.2 is not cmopatible with some controls within our software. I need the v9.0.1 download which I know works with the controls. Where can I get it?

    I'm a software tester for an in-house app at my company. version 10.0.2 is not cmopatible with some controls within our software. I need the v9.0.1 download which I know works with the controls. Where can I get it?

    Well, if you need old versions of firefox you can find them on this site:
    - http://www.oldapps.com/firefox.php
    Best regards, G-Cloud.

  • Hi Experts, need an example for abap unit test(ABAP OO)?

    Hi Experts,
    I want to do abap unit test for the developed programs, could anyone please give me an example program of development(a simple is ok, just use it to test)? and an abap unit test example for the program, what I want is to use object oriented abap, thanks in advance!
    Merry Christmas to you all.
    Kind regards
    Dawson

    Hi
    Below documents will give you more information,
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/content.htm
    ABAP Testing and Troubleshooting [original link is broken]
    http://bi.offis.de/publicProject/g16cglafhqva.htm
    regards
    Nagaraju

  • Need help retrieving the full license key for Photoshop 7.0 in order to re-install CS3 upgrade.

    Reinstalling a licensed version of Photoshop CS3. It's an upgrade from 7.0 and it's asking for the full key for 7.0. Where can I find that?

    If you did not register with Adobe, this may help.
    How To Recover Your Lost Software Serial Numbers

  • Do I need to apply for Adobe Reader Integration Key License (RIKLA) Program?

    I want to develop a commercial plugin for Adobe Reader that invokes some action through new items on right-click context menu.
    I need to apply for RIKLA for that?
    Reading the FAQ I notice this:
    What are the restrictions for Adobe Reader plug-in development?
    Modify the appearance of Adobe Reader
    I don't know if adding an item to context menu could be considered as "Modify appearance", besides this seems that RIKLA only applies for vary specific types of plugins and closed to very few people... I don't know if I need to worry about this or not because of being a commercial plugin.
    Thank you so much

    It's not just a licensing requirement. Without the RIKLA you cannot make Reader plug-ins at all. Adobe will vet your proposal and decide if they will permit it, and what license fee you will pay.

  • Need new activation code for NFR  XS key

    who knows who to email to receive new activation codes for logic NFR key. I havent gotten a response for the [email protected] address. what is the proper Apple email address to get codes from?

    All the suggestions in this forum were made because people assumed that you are using Logic Pro 7.1 and Mac OS X.
    I didn't assume this at all. I still think that they should be contacting apple, because as far as I can tell, an NFR version of a no longer selling product is not something you would ideally want to be hanging on to. apple would be able to tell you if they'll change it over for a logic 7 one, or to have a license bought for it so you can keep running 6 on OS9. NFRs are after all demo versions, usually given out to dealers and/or VIPs, I don't see why they would want to maintain NFR licenses out there for software that they are no longer demo-ing to sell. doesn't mean you can't buy a normal license though.

  • Sap test system needed / sap test system gebraucht

    Hi,
    maybe somebody of you could give some hint where I can find a test system for sap in a downloadable version 4.5 upwards. I have an sap mini basis system (mbs) in the version 4.6 (c) , but no valid license key on hand due to the fact that the old one has expired and there would not be any new license key available from sap company itself because of already having done the steps up to the latest version.
    If somebody could also advise where to find sap test versions in between 4.5/4.6 and the latest it would fantastic to get to know - I need an test environment for abap programming in the first place.
    Thanks in advance to you...!
    Best regards and wishes !!!
    Hallo,
    vielleicht gibt es jemand, der mir sagen kann wie oder wo ich ein Testsystem für die ABAP-Entwicklung bekommen kann.
    Ich habe für Windows bereits ein MiniSAP-System in der Version 4.6 (c), bei der der Lizenzkey aber nicht mehr funktioniert, da abgelaufen.
    Falls mir jemand einen Lizenzkey für diese Version zur Verfügung stellen kann, wäre mir vorerst sehr damit geholfen.
    Aber nichtsdestotrotz würde mich eine neuere Test-Version von SAP sehr interessieren. Falls mir jemand hiervon eine Kopie geben kann oder einen Hinweis darüber wo gebührenfrei oder kostengünstig eine solche zur Verfügung steht oder gestellt wird, wäre ich sehr froh darüber, da sich sicherlich seit 4.6 schon ein wenig geändert haben wird, in Menüs u.a. .
    Danke im Voraus für eine Antwort auf meine Frage!!
    Viele Grüße!!

    Hi again,
    during installation the java installation folder needs to be selected. After having chosen this the installation aborts by showing a message with the options retry, view log, stop. 
    This message is generated:
    An error occurred while processing option SAP NetWeaver 7.0 SR1 including Enhancement Package 1 > SAP Application Server ABAP > MaxDB > Central System > Central System( Last error reported by the step :The subkey 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AntiVirSchedulerService' does not exist on the 'localhost' host.). You can now:
    Choose Retry to repeat the current step.
    Choose View Log to get more information about the error.
    Stop the option and continue with it later.
    Log files are written to C:\Programme/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/.
    Also some message about my anti-virus software came up saying that there is a problem with with localhost. I have now deinstalled all java from my computer to plainly install the version needed: version jre 1.4.2.x, but I can't find this version in the internet, I mean not in the way that it is obviously the right version. Some description says j2se and other more even though I was googleing for jre 1.4.2 download.
    Is there anybody who can advise?
    Thanks for any hint.
    Best regards
    Guido
    Edited by: Guido Messer on Aug 5, 2009 3:31 PM

Maybe you are looking for