cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Rocha <rica...@apache.org>
Subject Session creation in XSP
Date Sun, 07 May 2000 00:56:35 GMT
Sessions are not automatically created by XSP pages. Until now, if you wanted
to create a session, you had to include an <xsp:logic> block to do so:

  <xsp:page language="java" ...>
    <my-page>
      . . .
        <xsp:logic>session = request.getSession(true);</xsp:logic>
      . . .
    </my-page>
  </xsp:page>

A new attribute has been added to the <xsp:page> element to allow for
automatic session creation without any intervening <xsp:logic>:

  <xsp:page language="java" create-session="yes" ...>
    ...
  </xsp:page>

Both "yes" and "true" are recognized for the "create-session" attribute

Mime
View raw message