requestScope to get object values
request.setAttribute(“foo.person”, p);
If all you need is to print the name of a person, and you really
don’t care what scope the person is in
This will work : ${person.name}
If you’re worried about a potential naming conflict, you can be explicit about which person you want:
This will work : ${requestScope.person.name}
THIS won’t work:
${ foo.person .name}
This will work
${ requestScope[“foo.person”] .name}