File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 19851

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

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

[Asking smart questions] [About Bear] [Books by Bear]
jQuery in Action, 3rd edition
subject: Comparing Two EL Expressions
It's not a secret anymore!