Cheers Mark. I had to do
ServletContext lContext = this.getServlet().getServletContext(); to get it to work from an action though. (I'm using 1.0.2) ta, Tim. Galbreath, Mark <[EMAIL PROTECTED]> wrote : > ServletContext context = getServletContext(); > context.setAttribute( "makeList", lMakeBean); > > Mark > > -----Original Message----- > From: Tim Sawyer [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 9:23 AM > To: [EMAIL PROTECTED] > 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: > [EMAIL PROTECTED]> > For additional commands, e-mail: > [EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED]> > For additional commands, e-mail: [EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

