// get the unique name of this dispatcher
String dispatcherName = config.getServletContext().getInitParameter("localDispatcherName");
if (dispatcherName == null)
Debug.logError("No localDispatcherName specified in the web.xml file", module);
dispatcher = new WebAppDispatcher(dispatcherName, delegator, readers);
config.getServletContext().setAttribute("dispatcher", dispatcher);
if (dispatcher == null)
Debug.logError("[ContextFilter.init] ERROR: dispatcher could not be initialized.", module);
}
return dispatcher;