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 Problem with equality test. 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 "Problem with equality test." Watch "Problem with equality test." New topic

Problem with equality test.

Scott Marshall

Joined: Sep 12, 2007
Posts: 2
Hi all

I'm relatively new to the JSTL, but I've got a few pages working. Now I'm having problems with this equality test. The code looks like :

When this is run I get this result :

They are NOT equal
List 533
End Index 533
Max Number 534

Somethings going wrong with the equality test.
The pages uses the imports

Does anyone see anything obvious ?
the fn function works when displaying the length of the list. I've used both == and eq to no noticeable effect.
Advice very much appreciated.
Scott Marshall

Joined: Sep 12, 2007
Posts: 2
Forget this, I found the error. Apologies to everyone for a dumb error on my part.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63355

It would be helpful to future posters if you could let us know what your error was.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Problem with equality test.
It's not a secret anymore!