File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSTL and EL doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSTL and EL doubt" Watch "JSTL and EL doubt" New topic

JSTL and EL doubt

Philip Pomario
Ranch Hand

Joined: Oct 03, 2003
Posts: 113
Guys, why can't I see the movie names next to their genres?

Any help is much appreciated.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

You're not accessing the Map properly.

[My Blog]
All roads lead to JavaRanch
Philip Pomario
Ranch Hand

Joined: Oct 03, 2003
Posts: 113
I really appreciate it. Thanks, Satou!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10031


Why " ${i.count}. Genre: ${genre}. Movies: ${movieNames["${genre}"]}<br>" is not correct?? Can you please explain???

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jerret Halter
Ranch Hand

Joined: Feb 03, 2006
Posts: 62
The following should work too:

If the " " is aorund ${genre} in movieNames then it is looking for a key ${genre} and not evaluating what ${genre} really is.
[ February 06, 2007: Message edited by: Jerret Halter ]

Jerret Halter<br /> <br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.<hr></blockquote>
I agree. Here's the link:
subject: JSTL and EL doubt
It's not a secret anymore!