stefano 2003/04/09 02:52:50
Modified: src/java/org/apache/cocoon/environment/http HttpEnvironment.java Log: readded the original servlet objects to the object model. Revision Changes Path 1.3 +8 -1 cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java Index: HttpEnvironment.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- HttpEnvironment.java 4 Apr 2003 13:19:07 -0000 1.2 +++ HttpEnvironment.java 9 Apr 2003 09:52:50 -0000 1.3 @@ -120,6 +120,13 @@ this.objectModel.put(ObjectModelHelper.REQUEST_OBJECT, this.request); this.objectModel.put(ObjectModelHelper.RESPONSE_OBJECT, this.response); this.objectModel.put(ObjectModelHelper.CONTEXT_OBJECT, this.webcontext); + + // This is a kind of a hack for the components that need + // the real servlet objects to pass them along to other + // libraries. + this.objectModel.put(HTTP_REQUEST_OBJECT, req); + this.objectModel.put(HTTP_RESPONSE_OBJECT, res); + this.objectModel.put(HTTP_SERVLET_CONTEXT, servletContext); } /**