Ralph Goers wrote:
I guess that's where I'm having a problem. From your example I presume "user" is an object that contains a getId() method?
Yepp. > If "user" is an
Ah, I see, no, it's simpler: if user is a map and "id" is a key in this map, you can simply useobject that contains a Map would that also be accessed by ${cocoon.session.attributes.user.attributes.id} ?
${cocoon.session.attributes.user.id} this is automatically resolved for you.
The easiest way is to add a getAttributes() method to the session and the request object; these methods return a map and then everything works. The implementation is easy as the attributes are stored in a map anyway.
Carsten
-- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/
