cziegeler 2003/10/20 06:39:10
Modified: src/java/org/apache/cocoon/servlet CocoonServlet.java Log: Making servlet config available via context Revision Changes Path 1.20 +8 -2 cocoon-2.2/src/java/org/apache/cocoon/servlet/CocoonServlet.java Index: CocoonServlet.java =================================================================== RCS file: /home/cvs/cocoon-2.2/src/java/org/apache/cocoon/servlet/CocoonServlet.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- CocoonServlet.java 20 Oct 2003 08:42:45 -0000 1.19 +++ CocoonServlet.java 20 Oct 2003 13:39:10 -0000 1.20 @@ -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 "; @@ -505,7 +510,8 @@ this.silentlyRename, this.maxUploadSize, this.defaultFormEncoding); - + // Add the servlet configuration + this.appContext.put(CONTEXT_SERVLET_CONFIG, conf); this.createCocoon(); }