You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Galbreath, Mark" <Ga...@tessco.com> on 2002/05/01 15:46:57 UTC
RE: Simple Scope Question (I Hope)
ServletContext context = getServletContext();
context.setAttribute( "makeList", lMakeBean);
Mark
-----Original Message-----
From: Tim Sawyer [mailto:tsawyer@nildram.co.uk]
Sent: Wednesday, May 01, 2002 9:23 AM
To: struts-user@jakarta.apache.org
Cc: Tim Sawyer
Subject: Simple Scope Question (I Hope)
Hi,
I would like to put an object in application scope rather than session
scope, from an action handler, but I can't find out how.
To put it in session scope I do:
theSession.setAttribute("makeList", lMakeBean);
What's the equivalent for application scope?
I'm trying to share an object between all users of my web application, so
there is a singleton rather than one per session. The data is a large
static list of car makes that I want to display in a drop list. Somebody
shout if I'm doing this the wrong way please...
ta,
Tim.
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>