Hi Tim! On Tue, Mar 12, 2002 at 05:35:41AM -0500, Tim Myers wrote: > > I can't find XSPRequestHelper.setSessionAttribute > > I haven't update cvs in more than a week, > but here's what i see in the relavent template: > > <xsl:template match="xsp-session:set-attribute"> > <xsl:variable name="name"> > <xsl:call-template name="value-for-name"/> > </xsl:variable> > <xsl:variable name="content"> > <xsl:call-template name="get-nested-content"> > <xsl:with-param name="content" select="."/> > </xsl:call-template> > </xsl:variable> > <xsp:logic> > request.getSession().setAttribute( > String.valueOf(<xsl:copy-of select="$name"/>), > <xsl:copy-of select="$content"/>); > </xsp:logic> > </xsl:template> > > You certainly should be able to set session attributes. Try putting > ( ) around sReport like <xsp:expr>(sReport)</xsp:expr> > > I'm not promising anything, but it works for me.
hmm. i tried the following: <session:set-attribute name="report"> <xsp:content><xsp:expr>sReport</xsp:expr></xsp:content> </session:set-attribute> and it also works :o) BUT: i have the following template: <xsl:template match="session:set-attribute"> <xsl:variable name="name"> <xsl:call-template name="value-for-name"/> </xsl:variable> <xsl:variable name="content"> <xsl:call-template name="get-nested-content"> <xsl:with-param name="content" select="."/> </xsl:call-template> </xsl:variable> <xsp:logic> XSPRequestHelper.setSessionAttribute(objectModel, String.valueOf(<xsl:copy-of select="$name"/>), <xsl:copy-of select="$content"/> ); </xsp:logic> </xsl:template> whats the difference between "xsp-session" and "session"? are this only different named xml namespaces or different taglibs? (#+?§$%& ;)) Chris btw: the version of cocoon i use is the distribution 2.0.1 dated 31-Jan-2002. -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian Jölly Tel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz
msg09291/pgp00000.pgp
Description: PGP signature