Can we use logical Operator in C:When  tag of JSTL

Hi,
I am developing an application in JSTL.
I am using c:when tag. I have question whether can we use Logical OR operator in JSTL.
I have tried using the following Syntax: The two bean fields have the value DISABLED
<c:set var="testval" value = "${bean.val}" />
<c:set var="testvalue" value ="${bean.value}" />
Ex: <c:when test="${testval eq 'DISABLED'} or ${testvalue eq 'DISABLED'}">
Ex: <c:when test="${(testval eq 'DISABLED') or (testvalue eq 'DISABLED')}">
Ex: <c:when test="${testval eq 'DISABLED' or testvalue eq 'DISABLED'}">
retrieving both these values from bean.
The following syntaxes did not work.
Please give me some pointers to resolve the issue.
Thanks,
Ravi
Edited by: user10977303 on Nov 17, 2010 9:05 AM
Edited by: user10977303 on Nov 17, 2010 9:10 AM

The entire expression including the 'or' has to be inside the ${}.
What this has to do with error handling beats me.

Similar Messages

  • Can I use Logic Pro 9.1.6 on two computers with one licens

    I have download and install Logic Pro 9.1.6 on my MacBookPro 13". I record on location with my MacBook an wil edit and arrange the music on my iMac at home. Can I use Logic Pro 9.1.6 on two computers with one licens. I'm the owner of both computers. If it can where can I find the program on my MacBook? and how to install and register?

    Hi, is  the iMac also 10.6.8? I had an iMac die when 10.6.8 was installed, it worked at first but after some You Tube flash videos the screen just locked and no mouse clicking anywhere did anything. It turned out that most older iMacs [ mine was from august 2007] have a graghics chipset that can't handle Snow Leopard, there were [are?] 77 pages on this "locked screen"topic in the Snow Leopard forum. I checked out a web site that tells you how much your mac is worth by filling in the sereal number-mine was worth only $168, I may give it to a friend for his children to play with, although that seems unholy. I doubt anyone woud buy it,the problem is now so well known that even Apple certified resellars here in the Netherlands refuse to repair them,they claim Apple will revoke their certification if they replace the faulty Graphics unit,it is also VERY hard to get to that unit in an iMac, everything is so tightly packed inside.
    If your iMac is running Mountain Lion[10.8.0] you may have to change the app store preference to accept apps from all sites,normally ML will only allow app store apps to be downloaded.

  • "Can I use Logic Pro in my new imac with 2.66 intel core 2 duo"

    Can I use Logic Pro in my new imac with 2.66 intel core 2 duo? With the new leopard operating system?
    I have a 002 rack from digidesign, that should be good running with a logic pro 8 DAW.

    Can I use Logic Pro in my new imac with 2.66 intel core 2 duo? With the new leopard operating system?
    Yes. Click here for more information.
    (40435)

  • I can not use my mouse or keyboard when I am trying to install windows via boot camp

    Please can you help!
    I can not use my mouse or keyboard when I am trying to install windows via boot camp

    Starting a couple of days ago my mouse and keyboard stopped working suddenly.  
    How are they connected?   In my case they are wireless and their receiver is plugged into my USB hub.  After an update I found the OS inexplicably not recognizing my USB hub and hence any devices which were plugged into it.  My fix was to
    plug the receiver into a different USB port (so I could use the mouse and keyboard; otherwise I would have had to use the OSK via Touch or pen.)  Once I had normal access into my machine again I used Device Manager to remove all USB controller and
    hubs (including hidden ones) and I then shut down, disconnected all USB devices and powered back up, this time using only Touch to get going.  Once the OS had settled down I started plugging stuff back in the way that I wanted it to be recognized. 
    If I didn't have Touch I would have had to have left the wireless receiver plugged in both places which I assume would be OK.  I have no idea why updates have such a catastrophic effect for USB devices.
    Robert Aldwinckle

  • I'm an American living on a timed (though long-term) assignment in Ireland. I have both American and Irish bank accounts and addresses. I have two Qs. 1. Can I use the US Adobe site when in Ireland? Or will my physical location prevent me from doing so? 2

    I'm an American living on a timed (though long-term) assignment in Ireland. I have both American and Irish bank accounts and addresses. I have two Qs. 1. Can I use the US Adobe site when in Ireland? Or will my physical location prevent me from doing so? 2. I am working for a not-for-profit organization. Is there a special pricing plan for non-profits, similar to the plans for students, small business, etc? Thanks for whatever help you can give me. (P.S. As a potential customer and past user of Adobe products for 15  years, I find it INCREDIBLY FRUSTRATING that I cannot speak with any Adobe representative, but am continually re-routed instead to a public forum to get what I hope will be accurate information. Not good, Adobe. Your products are amazing. Your customer service leaves a lot to be desired. I don't mean that with disrespect, but as honest feedback.)

    Hi bookchic
    Thanks for your feedback.
    Non-profit pricing is available to eligible institutions via the VIP program which is sold by resellers - see Eligibility guide
    For details of resellers please check here: Adobe Platinum Partners – Value Incentive Plan
    If you wish to purchase an individual plan via Adobe.com the country of your Adobe ID will determine which site you order from.
    Kind regards
    Bev

  • Can you use logic express on a mac mini for recording

    Can i use logic exprees on a mac mini for recording? Ive seen alot of 8,12, and 16 track recorders with a cd burner and it seems like a logical and more productive gues for me to buy a macmini for the same thing of recording and then I can uses logic express, a far better program for recording. can the mac mini handle the load of processing tracks and how much ram should I uses? thanks tim

    sorry, I'd like to butt in here:
    I would like to do the same thing, so I am curious about this forum and rather than starting a new one, can I get some advice on this possibility:
    Mac Mini
    1.83GHz Intel Core Duo
    2GB 667 DDR2 SDRAM - 2x1GB
    80GB Serial ATA drive
    Glyph External HD 250 Gig
    Mackie Onyx 1620 w/Firewire
    Logic Pro 7.2
    thoughts?
    The most number of tracks I could see at once would be 16.
    Here is something I am most curious about...
    Firewire Hard drive
    Firewire Interface/mixer
    Firewire camera for FCP
    to much firewire?
    Please let me know if you have other thoughts aswell...
    Shuke
    thanks guys, this forum is fantastic!

  • Can I use logical databases in a WebDynpro ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the existing logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hello, Tiberiu.
    You cannot use LDB directly within your WDA programa. BUT, you can fetch results from this LDB by using FM LDB_PROCESS. This function module can be called anytime from any kind of ABAP program. But you will still have to create the screen, as it only processes data, not screens.
    Regards,
    Andre
    PS: Pls reward points if it helps.

  • Can I use logical databases in a WebDynpro for ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the exisinting logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hi
    Please let me also know the solution to this. I am a beginner to WebDynpro  and want to know if I can make use of LDB's as we do in our normal HR programming do develop a WDA in HR.
    Thanks and regards,
    Uma.

  • While using my Iphone 5, all of a sudden  black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?

    While using my Iphone 5, all of a sudden  black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?

    Try resetting your phone, hold the home and sleep/wake button down until the apple symbol comes up, then release. If that doesnt work, you may have damaged your phone and need to take it to an apple genius bar.

  • Can I use apple tv in India when I buy it in the USA?

    Can I use apple tv in India when I buy it in the USA?

    Welcome to the Apple Community SOM_PA.
    Certainly, you can use it anywhere, obviously without the services which are US only (i.e Disney etc)

  • Hello! Can i use logic pro x with mbox 2 ?

    Hello! Can i use logic pro x with mbox ?

    Yes, I´m quite sure you can, go here:
    http://avid.force.com/pkb/articles/download/Mbox-2-Drivers
    Haven't fully tested it myself, but have a go.

  • Should I disconnect the charger once the battery is 100% full. Or can I use the laptop plugged even when the battery is full., Should I disconnect the charger once the battery is 100% full. Or can I use the laptop plugged even when the battery is full.

    Should I disconnect the charger once the battery is 100% full. Or can I use the laptop plugged even when the battery is full., Should I disconnect the charger once the battery is 100% full. Or can I use the laptop plugged even when the battery is full.

    You can leave the charger plugged in, as you cannot overcharge...charging automatically stops when your battery is full. Once every 2 ~ 3 months, its a good idea to drain the battery to about ~ 40%, then recharge to full. Otherwise, you can charge whenever you like & leave connected whenever you like.
    Try to avoid full battery discharges, Lithium batteries don't like that & frequent full discharge/recharge cycles will eventually kill your battery.

  • How to use logical operator

    Hi ,
    I hava a problem while using logical operators.
    I wrote a procedure to compare two strings.please check the following.
    CREATE OR REPLACE PROCEDURE comp_str(sour_str IN varchar2,targ_str IN varchar2) AS
    leng_sour_str number:=NVL(length(sour_str),0);
    leng_targ_str number:=NVL(length(targ_str),0);
    leng_str number:=NULL;
    BEGIN
    IF sour_str IS NULL THEN
    dbms_output.put_line(leng_targ_str);
    elsif targ_str IS NULL THEN
         dbms_output.put_line(leng_sour_str);
    ELSE
         select utl_match.edit_distance(leng_sour_str,leng_targ_str) into leng_str from dual;
    END IF;
    dbms_output.put_line(leng_str);
    IF (leng_str > 0) OR (leng_sour_str > 0) OR (leng_targ_str > 0) THEN
    dbms_output.put_line('Strings are not same');
    ELSE
    dbms_output.put_line('Strings are same');
    END IF;     
    END comp_str;
    IF (leng_str > 0) OR (leng_sour_str > 0) OR (leng_targ_str > 0) statement is not verifying the conditions properly.
    Please suggest me that how to write multiple conditions with OR Operator or any alternative.
    thanks in advance.

    They are working exactly as you expect it. The problem in your code is probably the "utl_match.edit_distance"-procedure. Do you know the outcome of this procedure?
    Why don't you try something like
    declare
      l_string1   varchar2(255) := 'String1';
      l_string2   varchar2(255) := 'String 2';
    begin
      if length(l_string1) > length(l_string2) then
        dbms_output.put_line('String 1 is longer than String 2');
      else
        dbms_output.put_line('String 1 is shorter than String 2');
      end if;
    end;This way, you can change one string or the other and see, how it works. With utl_match.edit_distance you need to know what exactly they are computing to see what the logical comparison is doing.

  • How can I use Back to my Mac when my ISP blocks port 1900?

    I was just forced to switch ISPs (don't ask...) and it turns out that my new ISP (Astound) lied to me and actually does block port 1900, which means that Back to my Mac (on which I rely) does not work.
    Has anyone seen this and found a viable workaround? Preferably one that is easy for my non-technical family to use also, but all suggestions are welcome.
    Thank you!

    So, I convinced my ISP to open port 1900 and they did, but it's still not working.
    I get two messages that make no sense to me, but I hope indicated something that someone here can help me undertstand...
    When I open the iCloud preference pane in System Preferences, It says just below the Back to my Mac setting "Configure Router for better performance" - My Airport Extreme is configured with  Back to my Mac and it looks like my account shows a green indicator.
    Second, next to the Back to my Mac setting in the iCloud preference pane, there is a button labeled "Details..." When I click that it tells me that "Back to my Mac is not working properly because the DNS server isnt' responding" and suggests I contact my ISP for a different DNS server.
    All other internet services - including iCloud services - are working fine. I even tried changing my DNS servers to Google's public DNS servers and nothing changed.
    Any suggestions are very much appreciated! Thank you!

  • OBIEE 10g - Can I use logical SQL to set variable?

    I am trying to set value of a session variable in the Advanced tab Prefix box of a request.
    Assigment of absolute value like this is working good:
    SET VARIABLE MYVAR=1;
    Can I set the variable using logical SQL? Something like:
    SET VARIABLE MYVAR = (SELECT table1.col1 from catname where table1.col2=1)
    Thanks in advance.

    Hi,
    You can create a session variable or dynamic variable in the RPD and try using it in here at the Advanced Tab prefix.
    But still check yourself if you need multiple values returning in the SQL statement.
    Hope this is helpful/ useful.
    Regards
    MuRam

Maybe you are looking for

  • Purchase order text in material is replicated from ECC to SRM?

    Hello experts, In the standard process of replicating materials from an SAP ECC system to SRM, is the purchase order text tab in MM03 replicated to SRM? I've tried searcing for this text in SRM but I guess it is not replicated. Is there a way to do t

  • The next page in not displaying in the SAP Script

    Hello, I had one SAP script. There were two pages in the script and i mentioned the next page also for the FIRST and NEXT page as First - next page --> next and next -- next page --> next Now, I am having 3 items which needs to be gets displayed usin

  • Importing a defined package

    Hi all, I'm having issues setting up packages and importing stuff between them. My scenario is this I have a package called WebUtils where I want to put all my web related classes. I have a class called DatabaseConnection in the WebUtils package that

  • Flow of Activity Type in Cost Estimate

    Hi I have made all the required settings for product costing, I have also maintained values in KP26 for activity postings, but not able to get the flow in Cost estimate. Can any body let me know the reasons why i am not able to get the activity posti

  • ISU Device Managment

    Hi All, I am very new to ISU and just started getting trained on Device managment ,I know the SAP MM & DMS very well, Any links or any document related to ISU device managment. Regards, Ranjan aMit