Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSP and the fly likes Comparing Two EL Expressions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Comparing Two EL Expressions" Watch "Comparing Two EL Expressions" New topic

Comparing Two EL Expressions

Joe Brigs
Ranch Hand

Joined: Jun 06, 2011
Posts: 70

I want to comapre two $EL expressions , like below. But obviously this isn't correct. Is this possible ? Thank You

<c:when test="${masterCount} == ${cursorPosition}">
Paul Clapham

Joined: Oct 14, 2005
Posts: 19750

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63350

The ${} is not a fetch operator -- it encompasses a complete EL expression.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Comparing Two EL Expressions
It's not a secret anymore!