Are you just trying to shorthand this:
<c:out value="${person.name.firstName}"/>
In other words, person.getName().getFirstName().
Quoting [EMAIL PROTECTED]:
> JSTL is not nesting appropriately. Here is an example of what I am doing:
>
> <c:set var="person" value="${requestScope.personForm}"/>
> <c:set var="nestedProp" value="name.firstName"/>
> <c:out value="${person[nestedProp]}"/>
>
> The error that I am getting is:
> Unable to find a value for "name.firstName" in object of class
> "org.team.Person" using operator "[]" (null)
>
> If nestedProp was just firstName (and Person had a firstName property) then
> this works just fine. JSTL is not seeing the . and doing
> getName().getFirstName()
>
> I have tried a number of combinations with [] and ' (escape) and \ and ....
> nothing works :( Any help appreciated.
>
>
> Carl
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]