greenrd 00/12/08 04:48:30
Modified: . changes.xml
xdocs patches.xml
src/org/apache/cocoon/processor/xsp/library/java session.xsl
Log:
session taglib fixes (thanks to Corey O'Donovan)
Revision Changes Path
1.160 +6 -1 xml-cocoon/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/changes.xml,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -r1.159 -r1.160
--- changes.xml 2000/12/01 23:36:43 1.159
+++ changes.xml 2000/12/08 12:48:28 1.160
@@ -4,7 +4,7 @@
<!--
History of Cocoon changes
- $Id: changes.xml,v 1.159 2000/12/01 23:36:43 greenrd Exp $
+ $Id: changes.xml,v 1.160 2000/12/08 12:48:28 greenrd Exp $
-->
<changes title="History of Changes">
@@ -18,6 +18,11 @@
</devs>
<release version="@version@" date="@date@">
+ <action dev="RDG" type="fix" due-to="Corey O'Donovan"
+ due-to-email="[EMAIL PROTECTED]">
+ Added removeValue template and remove duplicate putValue template from
session taglib,
+ which should now be complete.
+ </action>
<action dev="RDG" type="add" due-to="Donald Ball" due-to-email="[EMAIL
PROTECTED]">
Passed extra parameters to style- and logic- sheets - XSP-ENVIRONMENT
("Cocoon @version@") and XSP-VERSION (1.0)
1.4 +0 -7 xml-cocoon/xdocs/patches.xml
Index: patches.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/xdocs/patches.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- patches.xml 2000/11/21 22:42:23 1.3
+++ patches.xml 2000/12/08 12:48:29 1.4
@@ -76,13 +76,6 @@
<td>1.7.1-dev</td>
</tr>
<tr>
- <td>Unknown, 2000</td>
- <td>session.xsl</td>
- <td>JSDK2.0/2.1 HttpSession objects removeValue() method doesn't have a
tag. +more...</td>
- <td>Corey O'Donovan</td>
- <td>1.?</td>
- </tr>
- <tr>
<td>28 Oct 2000</td>
<td><link
href="http://mailman.real-time.com/pipermail/cocoon-devel/2000-October/003029.html">
resource URL: handling</link></td>
1.12 +12 -19
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.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- session.xsl 2000/10/15 22:49:54 1.11
+++ session.xsl 2000/12/08 12:48:30 1.12
@@ -130,6 +130,18 @@
);
</xsp:logic>
</xsl:template>
+
+ <xsl:template match="session:remove-value">
+ <xsl:variable name="name">
+ <xsl:call-template name="value-for-name"/>
+ </xsl:variable>
+
+ <xsp:logic>
+ session.removeValue(
+ String.valueOf(<xsl:copy-of select="$name"/>)
+ );
+ </xsp:logic>
+ </xsl:template>
<!-- End deprecated methods -->
<xsl:template match="session:get-attribute">
@@ -333,25 +345,6 @@
<xsp:logic>
session.setAttribute(
- String.valueOf(<xsl:copy-of select="$name"/>),
- <xsl:copy-of select="$content"/>
- );
- </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"/>
);