File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply 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: 14672
    
  11

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

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSTL and EL doubt
 
Similar Threads
EL basic
forEach in Java class
How to run jstl program
Doubt in Attribute with JSTL.Thanks!
Using JSTL example in K&B Book