This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on a question in EL

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Given:
<% int[] nums = {42,420,4200};
request.setAttribute("foo",nums);%>'
${requestScope['foo'][0] ne 10 div 0 }

My doubt is how is the value true?


Thanks in advance.
 
Aditya Singh
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer operator precedence table,
http://www.informit.com/articles/article.aspx?p=30946&seqNum=4

It says Arithmatic operation hav priority over logical.
42 ne Infinity: So true.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic