1 package com.opensymphony.webwork.lifecycle; 2 3 import com.opensymphony.webwork.config.ServletContextSingleton; 4 5 import javax.servlet.ServletContext; 6 import javax.servlet.http.HttpSession; 7 8 /** 9 * @author Scott N. Smith scottnelsonsmith@yahoo.com 10 * @version $Id: SessionLifecycleListenerCompatWeblogic61.java,v 1.1 2005/06/06 06:57:07 plightbo Exp $ 11 */ 12 public class SessionLifecycleListenerCompatWeblogic61 13 extends SessionLifecycleListener { 14 /** 15 * This is needed by Weblogic Server 6.1 because it 16 * uses a slightly obsolete Servlet 2.3-minus spec. 17 * In this obsolete spec, the servlet context is not 18 * available from the web session object, and so 19 * it is retrieved from a special singleton whose sole 20 * purpose is to hold the servlet context for this listenter. 21 * 22 * @param session the HTTP session. Here is it not used. 23 * @return the servlet context 24 * @see ServletContextSingleton 25 * @see SessionLifecycleListener#getServletContext(javax.servlet.http.HttpSession) 26 */ 27 protected ServletContext getServletContext(HttpSession session) { 28 return ServletContextSingleton.getInstance().getServletContext(); 29 } 30 } 31