Unfortunately, you parameters specified in the sitemap must be Strings.
This makes it very difficult to pass objects around. The way I do it is to use
aggregation. I have a generator that converts the object to XML. The stylesheet
then accesses the data from the aggregated document. With caching this
really isn't too bad as you can cause the XML document to be cached until the
object is changed.
-----Original Message-----
From: beyaNet Consultancy [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 3:59 AM
To: [EMAIL PROTECTED]
Subject: reading Session objectsHi,
I have a session which is created on authentication of a user. As part of the session, the user object is passed back to the sitemap. I was under the impression that I could read the object from the session like ${session.getAttribute("usr").firstName} in my xsl page? I can read the user object into an xsp page by doing:
<xsp:expr>((User)session.getAttribute("user")).getFirstName()</xsp:expr>, but how can I read the session object into an xsl page?
many thanks in advance
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
