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 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to