aspose file tools*
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 Spring in Action 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
Author

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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: 9426
    
    2

Satou,

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>
 
wood burning stoves
 
subject: JSTL and EL doubt