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
Take a look at this:
public class ApplicationContextListener implements ServletContextListener
{
private ServletContext servletContext = null;
public void contextInitialized(ServletContextEvent arg0) {
servletContext = arg0.getServletContext();
Ap
8 matches
Mail list logo