You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robin Green <gr...@hotmail.com> on 2000/10/16 02:23:35 UTC
Fwd: New session tag added
This is just a trivial addition for putting values into sessions, only
needed for pre-Servlet-2.2 containers such as JServ.
>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>
>
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.