This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EL Mystery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "EL Mystery" Watch "EL Mystery" New topic
Author

EL Mystery

khaled Jamal
Ranch Hand

Joined: Feb 16, 2009
Posts: 64
Hi

Suppose we have a Person class like this one :



This is a part of code from a servlet :



which dispatch to this JSP :



I want to know please how the container know the type of objects within the list to cast them in order to be able to access the id and name

Thanks


SCJP 6, SCBCD 5, SCWCD 5



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60748
    
  65

reflection


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: EL Mystery
 
Similar Threads
Sort Arraylist by passing runtime parameter
XMLEncoder - Stackoverflowerror - overriding equals
Accessing private variables directly from outside the class
Comparator
JSTL c:forEach tag iteration variable