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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo