code: public static String getModulePathFromReqAttr( HttpServletRequest request )
      {
          //
          // If a config was in the request, use its associated prefix; otherwise, fall back to the URI.
          //
          ModuleConfig config = ( ModuleConfig ) request.getAttribute( Globals.MODULE_KEY );
          return config != null ? config.getPrefix() : PageFlowUtils.getModulePath( request );
      }
docs: Gets the Struts module path from the input request.  If a ModuleConfig
  object has been populated into the request it is used to get the module prefix,
  otherwise getModulePath is called, which derives the module path from
  the request URI.