tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47466] New: Page session="false" directive ignored in include-prelude JSP
Date Thu, 02 Jul 2009 11:01:23 GMT

           Summary: Page session="false" directive ignored in
                    include-prelude JSP
           Product: Tomcat 6
           Version: 6.0.20
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper

Created an attachment (id=23920)
 --> (
Example war consisting of the above web.xml and JSP files

Page session directive appears to be ignored when specified in include-prelude
declarations. For example, the following configuration should ensure that JSP
pages do not create sessions. This works in 6.0.14, but not in 6.0.20 (I've not
test 6.0.18 yet).

<?xml version="1.0"?>
<web-app xmlns=""

<%@ page session="false" %>

<!DOCTYPE html>
<html xmlns="" xml:lang="en">
  <title>Session Test</title>
<%  if (null != request.getSession(false)) {
      %>Session present<%
    } else {
      %>Session not present<%

I've attached a sample WAR file containing the above files. Under 6.0.20, the
output will be 'Session present', whereas in 6.0.14 the output will be 'Session
not present'.

Has the behaviour of preludes been intentionally changed in 6.0.20? I've not
seen any specific in the change logs between versions.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message