cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Lorenz" <jens.lor...@interface-business.de>
Subject Bug: org/apache/cocoon/processor/xsp/library/java/session.xsl
Date Tue, 22 Aug 2000 13:19:27 GMT

Hi,


While using the session tag library I've found a bug in it ... I
assume it's just a typo ...
The javax.servlet.http.HttpSession Interface (Servlet API v2.2)
has a method called void setMaxInactiveInterval(int interval) not
void setInactiveInterval(int interval) and my servlet container
(Tomcat 3.2beta2) conforms with this too ...


diff -u
cocoon-1.7.4/src/org/apache/cocoon/processor/xsp/library/java/session.xsl
mycocoon/src/org/apache/cocoon/processor/xsp/library/java/session.xsl

---
cocoon/cocoon-1.7.4/src/org/apache/cocoon/processor/xsp/library/java/session
.xsl Mon Jan 12 03:18:12 1970
+++ mycocoon/src/org/apache/cocoon/processor/xsp/library/java/session.xsl
Tue Aug 22 14:58:09 2000
@@ -5,7 +5,7 @@
                    The Apache Software License, Version 1.1

============================================================================

- Copyright (C) 1999-2000 The Apache Software Foundation. All rights
reserved.
+ Copyright (C) @year@ The Apache Software Foundation. All rights reserved.

  Redistribution and use in source and binary forms, with or without
modifica-
  tion, are permitted provided that the following conditions are met:
@@ -352,7 +352,7 @@
     </xsl:variable>

     <xsp:logic>
-      session.setInactiveInterval(
+      session.setMaxInactiveInterval(
         Integer.parseInt(
           String.valueOf(
             <xsl:copy-of select="$interval"/>


Regards,

Jens

--

jens.lorenz@interface-business.de

interface-business GmbH                             \\|//
Tolkewitzer Strasse 49                              (o o)
01277 Dresden                               ~~~~oOOo~(_)~oOOo~~~~
Germany



Mime
View raw message