cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/servlet CocoonServlet.java
Date Mon, 20 Oct 2003 13:27:18 GMT
cziegeler    2003/10/20 06:27:18

  Modified:    src/java/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  Making servlet config available via context
  
  Revision  Changes    Path
  1.19      +8 -2      cocoon-2.1/src/java/org/apache/cocoon/servlet/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/servlet/CocoonServlet.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- CocoonServlet.java	20 Oct 2003 08:41:26 -0000	1.18
  +++ CocoonServlet.java	20 Oct 2003 13:27:17 -0000	1.19
  @@ -134,6 +134,11 @@
    */
   public class CocoonServlet extends HttpServlet {
   
  +    /** Application <code>Context</code> Key for the servlet configuration

  +     *  @since 2.1.3
  +     */
  +    public static final String CONTEXT_SERVLET_CONFIG = "servlet-config";
  +    
       // Processing time message
       protected static final String PROCESSED_BY = "Processed by "
           + Constants.COMPLETE_NAME + " in ";
  @@ -504,7 +509,8 @@
                                                    this.silentlyRename,
                                                    this.maxUploadSize,
                                                    this.defaultFormEncoding);
  -
  +        // Add the servlet configuration
  +        this.appContext.put(CONTEXT_SERVLET_CONFIG, conf);
           this.createCocoon();
       }
   
  
  
  

Mime
View raw message