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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 3775

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

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: jstl and HashMap null
Similar Threads
problem with JSTL
Problem with nested c:forEach
forEach and hasNext()
Printing hashmaps
Check if list is empty jstl