struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ced...@apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/tiles TilesPlugin.java
Date Fri, 19 Jul 2002 10:03:03 GMT
cedric      2002/07/19 03:03:03

  Modified:    src/share/org/apache/struts/tiles TilesPlugin.java
  Log:
  Correctly initialize the TilesRequestProcessor for sub-modules.
  
  Revision  Changes    Path
  1.3       +10 -9     jakarta-struts/src/share/org/apache/struts/tiles/TilesPlugin.java
  
  Index: TilesPlugin.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/tiles/TilesPlugin.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TilesPlugin.java	11 Jul 2002 17:37:01 -0000	1.2
  +++ TilesPlugin.java	19 Jul 2002 10:03:03 -0000	1.3
  @@ -124,22 +124,23 @@
     public void init(ActionServlet servlet, ApplicationConfig config)
         throws ServletException
     {
  +    // Create factory config object
  +  DefinitionsFactoryConfig factoryConfig = readFactoryConfig(servlet, config);
  +    // Set RequestProcessor class
  +  initRequestProcessorClass( config );
  +
       // Check if factory already exist in context.
     definitionFactory = DefinitionsUtil.getDefinitionsFactory( servlet.getServletContext()
);
     if( definitionFactory != null )
       {
       if(debug)
         {
  -      System.out.println( "Warning - TilesPlugin : factory already exists. No new creation."
);
  -      servlet.log( "Warning - TilesPlugin : factory already exists. No new creation." );
  +      System.out.println( "Info - TilesPlugin : factory already exists. No new creation."
);
  +      servlet.log( "Info - TilesPlugin : factory already exists. No new creation." );
         }
       return;
       } // end if
   
  -    // Initialize
  -  DefinitionsFactoryConfig factoryConfig = readFactoryConfig(servlet, config);
  -    // Set RequestProcessor class
  -  initRequestProcessorClass( config );
       // Create configurable factory
     try
       {
  
  
  

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message