cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgaw...@apache.org
Subject svn commit: r279055 - /cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java
Date Tue, 06 Sep 2005 18:30:16 GMT
Author: lgawron
Date: Tue Sep  6 11:29:51 2005
New Revision: 279055

URL: http://svn.apache.org/viewcvs?rev=279055&view=rev
Log:
JXTG:
No point in keeping old contracts if they are broken anyway (JXPath failed to work with any
FOM_* object). 
Please remember to use cocoon.request.parameters.paramName instead of cocoon.request.paramName
Applies to:
context.attributes
request.parameters
request.attributes
session.attributes

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java?rev=279055&r1=279054&r2=279055&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java Tue
Sep  6 11:29:51 2005
@@ -122,18 +122,18 @@
         try {
             // cocoon.request
             final Request request = ObjectModelHelper.getRequest( objectModel );
-            cocoon.put("request", new FOM_Cocoon.FOM_Request(getScope(), request));
+            cocoon.put("request", request);
             
             // cocoon.session
             final Session session = request.getSession(false);
             if (session != null) {
-                cocoon.put("session", new FOM_Cocoon.FOM_Session(getScope(), session));
+                cocoon.put("session", session);
             }
         
             // cocoon.context
             final org.apache.cocoon.environment.Context context =
                 ObjectModelHelper.getContext( objectModel );
-            cocoon.put("context", new FOM_Cocoon.FOM_Context(getScope(), context));
+            cocoon.put("context", context);
 
         } finally {
             Context.exit();



Mime
View raw message