This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 9999


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!