Two Laptop Bag*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt on EL logical operators Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt on EL logical operators" Watch "doubt on EL logical operators" New topic
Author

doubt on EL logical operators

Suchitra Bhat
Ranch Hand

Joined: Dec 30, 2005
Posts: 62
Hi,

some one please tell me do logical operators of EL AND :&& and OR :|| work similar to short circuit operators in java or do they work similar to simple logical operators??

Thanks in Advance,
Suchitra
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

JSP.2.3.6.1 Binary operator - A {&&,||,and,or} B
� Coerce both A and B to Boolean, apply operator
The operator stops as soon as the expression can be determined, i.e., A and B
and C and D � if B is false, then only A and B is evaluated.


[My Blog]
All roads lead to JavaRanch
 
Don't get me started about those stupid light bulbs.
 
subject: doubt on EL logical operators
 
Similar Threads
Operator precedence &&, ||
if condition problem ( ex from k&b )
hi there,
EL value for unknown variables. Math and logical.
Short-Circuit Logical Operator!!!