cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Newland <>
Subject xsp equivalent of JSP bean "application scope"
Date Tue, 16 May 2000 13:42:49 GMT

Is there a way of making variables in XSP pages in
scope for the entire duration of the cocoon server?

I've tried:

private static boolean _run_once = false;

<page title="Welcome">
if (_run_once == false) {
_users	= new Vector();
_run_once = true;


but if I press refresh on the browser then _run_once
is set to false again (which causes my run-once region
to be executed again)

Is this happening because my XSP is recompiled when
the page is fetched again?

Thanks for your help


Do You Yahoo!?
Get your free address at
or your free address at

View raw message