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
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: 19973

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

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

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