File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes How do EL Expression containing combination Arithmetic ,Logical, Relational Operators work  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "How do EL Expression containing combination Arithmetic ,Logical, Relational Operators work  ?" Watch "How do EL Expression containing combination Arithmetic ,Logical, Relational Operators work  ?" New topic
Author

How do EL Expression containing combination Arithmetic ,Logical, Relational Operators work ?

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634



myBean is a bean created in request scope with value of testproperty as 33

I am unable to get How these El expression operate.

How to EL operator work left to right or viceversa if in an EL we have combination of Arithmetic ,Logical and Relational operators ?


OCPJP 6.0 93%
OCPJWCD 5.0 98%
Piyush Joshi
Ranch Hand

Joined: Jun 10, 2011
Posts: 207

mohitkumar gupta wrote:
How to EL operator work left to right or viceversa if in an EL we have combination of Arithmetic ,Logical and Relational operators ?


The same way you expect them to work in java code. The operator precedence is same as in java.

For example: ${5 + 3 lt 6} will work same way as: (5 + 3 < 6) in a java code.


Piyush
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

Thanks Piyush
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How do EL Expression containing combination Arithmetic ,Logical, Relational Operators work ?
 
Similar Threads
EL problem
HFSJ mock exam 2 Question -Standard Actions
Arithmetic value of "" in EL expressions
EL expression doubt
Doubt on a question in EL