You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gr...@locus.apache.org on 2000/10/16 00:49:55 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp/library/java session.xsl
greenrd 00/10/15 15:49:55
Modified: src/org/apache/cocoon/processor/xsp/library/java session.xsl
Log:
Added put-value for pre-Servlet 2.2 compatibility
Revision Changes Path
1.11 +19 -0 xml-cocoon/src/org/apache/cocoon/processor/xsp/library/java/session.xsl
Index: session.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/java/session.xsl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- session.xsl 2000/08/22 14:58:32 1.10
+++ session.xsl 2000/10/15 22:49:54 1.11
@@ -339,6 +339,25 @@
</xsp:logic>
</xsl:template>
+ <xsl:template match="session:put-value">
+ <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>
+ session.putValue(
+ String.valueOf(<xsl:copy-of select="$name"/>),
+ <xsl:copy-of select="$content"/>
+ );
+ </xsp:logic>
+ </xsl:template>
+
<xsl:template match="session:set-max-inactive-interval">
<xsl:variable name="interval">
<xsl:choose>