code: private void defaultControllerConfig(ModuleConfig config) {
  
          String value = null;
          ControllerConfig cc = config.getControllerConfig();
          
          value = getServletConfig().getInitParameter("bufferSize");
          if (value != null) {
              cc.setBufferSize(Integer.parseInt(value));
          }
          
          value = getServletConfig().getInitParameter("content");
          if (value != null) {
              cc.setContentType(value);
          }
          
          value = getServletConfig().getInitParameter("locale");        
          // must check for null here 
          if (value != null) {
              if ("true".equalsIgnoreCase(value) || "yes".equalsIgnoreCase(value)) {
                  cc.setLocale(true);
              } else {
                  cc.setLocale(false);
              }
          } 
          
          value = getServletConfig().getInitParameter("maxFileSize");
          if (value != null) {
              cc.setMaxFileSize(value);
          }
          
          value = getServletConfig().getInitParameter("nocache");
          if (value != null) {
              if ("true".equalsIgnoreCase(value) || "yes".equalsIgnoreCase(value)) {
                  cc.setNocache(true);
              } else {
                  cc.setNocache(false);
              }
          }
          
          value = getServletConfig().getInitParameter("multipartClass");
          if (value != null) {
              cc.setMultipartClass(value);
          }
          
          value = getServletConfig().getInitParameter("tempDir");
          if (value != null) {
              cc.setTempDir(value);
          }
  
      }
docs: Perform backwards-compatible configuration of the default module's
  controller configuration from servlet initialization parameters (as
  were used in Struts 1.0).
  
  @param config The ModuleConfig object for the default module
  
  @since Struts 1.1
  @deprecated Will be removed in a release after Struts 1.1.