cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <o...@wlkp.org>
Subject Re: flowscript bizData "AOP"
Date Sun, 18 Apr 2004 21:07:46 GMT
On Sun, Apr 18, 2004 at 10:41:10PM +0200, Ugo Cei wrote:
> Il giorno 18/apr/04, alle 21:01, Christopher Oliver ha scritto:
> 
> >The above approach has a serious drawback anyway - namely, that it 
> >won't work for sub-sitemaps. They share the same session and would 
> >overwrite each other's session attributes.
> 
> Do you really need to use the session? Can't you store the "toSAX" 
> function as a request attribute or as a bizData object?
The thing is you want to set it ONCE. Just as you have a User object filled up
during login and then you would like to have it available for all views
without explicit declaring (For example you insert Hello, user! on every
page).

request attribute or bizData is fine for one request only.
	lg
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/       ouzo@wlkp.org           _\\()//_
         .'/()\'.     Phone: +48(501)720812     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Mime
View raw message