jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes A doubt in EL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "A doubt in EL" Watch "A doubt in EL" New topic

A doubt in EL

rajaraman navaneethan
Ranch Hand

Joined: Feb 26, 2005
Posts: 86
hi friends,
when i execute the following in a JSP,i get the following result.how is the priority of operators working in EL.please explain.

${100 < 2 div 1}- false
${100 < 2 div 0}-true

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
The reason why that happens is two folds.
1. 2/0 is infinity.

Also for the order of operations.

BODMAS : the maths thing from school and we have operators.
I agree. Here's the link: http://aspose.com/file-tools
subject: A doubt in EL
It's not a secret anymore!