cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Burton" <bur...@relativity.yi.org>
Subject Re: Session creation in XSP
Date Sun, 07 May 2000 04:07:15 GMT
Ricardo Rocha wrote:
> 
> 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

Why are we supporting both "yes" and "true".... Why not just use "true"
and "false" so that this maps to an XML Schema boolean datatype?  Just a
thought.

Kevin

-- 
Kevin A Burton (burton@apache.org)
http://relativity.yi.org
Message to SUN:  "Please Open Source Java!"
The house of the unbelievers shall be razed and they shall be
scorched to the earth. Their code will be open until the end of days.

Mime
View raw message