Re: Global scope

2005-05-10 Thread gdeschen
ng List" To "Struts Users Mailing List" cc Subject Re: Global scope Classification The Action and ActionForm both should have the servlet variable initialized. Thats a better way of getting the ServletContext: servlet.getServletContext(); Niall - Original Mess

Re: Global scope

2005-05-10 Thread Niall Pemberton
The Action and ActionForm both should have the servlet variable initialized. Thats a better way of getting the ServletContext: servlet.getServletContext(); Niall - Original Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]> Sent: Tuesday, May 10, 2005 5:09 PM request.getSessio

Re: Global scope

2005-05-10 Thread Michael Jouravlev
request.getSession().getServletContext(); I guess, servlet context makes sense even without session, but this seems to be the easiest way to obtain it through the request, which is passed to your reset(), validate() and execute() methods. On 5/10/05, Nils Liebelt <[EMAIL PROTECTED]> wrote: > Can

RE: Global scope

2005-05-10 Thread Nils Liebelt
List Subject: Re: Global scope Take a look at this: public class ApplicationContextListener implements ServletContextListener { private ServletContext servletContext = null; public void contextInitialized(ServletContextEvent arg0) { servletContext = arg0

RE: Global scope

2005-05-10 Thread Nils Liebelt
List Subject: Re: Global scope Take a look at this: public class ApplicationContextListener implements ServletContextListener { private ServletContext servletContext = null; public void contextInitialized(ServletContextEvent arg0) { servletContext = arg0

RE: Global scope

2005-05-10 Thread Nils Liebelt
Ah looks gd thanks, Cheers Nils -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 4:46 PM To: Struts Users Mailing List Subject: Re: Global scope Take a look at this: public class ApplicationContextListener implements

RE: Global scope

2005-05-10 Thread Nils Liebelt
Ah looks gd thanks, Cheers Nils -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 4:46 PM To: Struts Users Mailing List Subject: Re: Global scope Take a look at this: public class ApplicationContextListener implements

Re: Global scope

2005-05-10 Thread gdeschen
letContext(); servletContext.removeAttribute("applicationBean"); } } HTH, Glenn "Nils Liebelt" <[EMAIL PROTECTED]> 10/05/2005 10:41 AM Please respond to "Struts Users Mailing List" To "'Struts Users Mailing List'" cc <[EMAIL PROTECTE

Global scope

2005-05-10 Thread Nils Liebelt
Hi everybody, Is there a global scope where you could dump e.g. a list of all users or stuff that is needed in global context. Or just adding to each single session? GreetZ Nils

Global scope

2005-05-10 Thread Nils Liebelt
Hi everybody, Is there a global scope where you could dump e.g. a list of all users or stuff that is needed in global context. Or just adding to each single session? GreetZ Nils