public class ServletContextSingleton extends Object
This singleton holds an instance of the web servlet context.
This is needed for running Struts on Weblogic Server 6.1
because there is no provision to retrieve the servlet context
from the web session object.
This class is created to bet that this singleton can be set by
{@link org.apache.struts2.dispatcher.FilterDispatcherCompatWeblogic61}
before the servlet context is needed by
{@link org.apache.struts2.lifecycle.SessionLifecycleListener}
which will use this object to get it.
Fields Summary
private ServletContext
servletContext
The web servlet context. Holding this is the
purpose of this singleton.