I assume that the
JSP implicit objects cannot be accessed in EL and that is why we have dedicated EL implicit objects.
However, the following question from javabeat
18) Assume that a property by name 'eId' is defined in the EmployeeId object,
which inturn is contained in Employee class by the name 'empId'.
<% EmployeeId id = new EmployeeId(1000); %>
<% Employee employee = new Employee(id); %>
<% request.setAttribute("johny", employee); %>
which of the following uses the correct EL for accessing the eId property?
a. ${requestScope.johny.empId.eId}
b. ${requestScope.johny.eId.empId}
c. ${request.johny.empId.eId}
d. ${requestScope[johny"[empId[eId]]]}
e. All the above.
has the answer
18) a, c and e.
Options a, c and e are correct.
How are these correct?