File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes jstl and HashMap null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jstl and HashMap null" Watch "jstl and HashMap null" New topic

jstl and HashMap null

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798

If I use c:if test to see if a HashMap is null like below, it will not work. Why ?


Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi, Edward.

Can you please post, what error message you are getting?
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3902

What "c.reportDataMap" contains (what are "c" and "reportDataMap")? What's the name of the Map attribute?

[How to ask questions] [Twitter]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Is there a reason you're mot using the empty operator?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: jstl and HashMap null
It's not a secret anymore!